mal_assert(g_malOpenSLInitCounter > 0); /* <-- If you trigger this it means you've either not initialized the context, or you've uninitialized it and then attempted to enumerate devices. */
if (g_malOpenSLInitCounter == 0) {
return MAL_INVALID_OPERATION;
}
// TODO: Test Me.
// TODO: Test Me.
//
//
// This is currently untested, so for now we are just returning default devices.
// This is currently untested, so for now we are just returning default devices.
mal_assert(g_malOpenSLInitCounter > 0); /* <-- If you trigger this it means you've either not initialized the context, or you've uninitialized it and then attempted to get device info. */
if (g_malOpenSLInitCounter == 0) {
return MAL_INVALID_OPERATION;
}
// TODO: Test Me.
// TODO: Test Me.
//
//
// This is currently untested, so for now we are just returning default devices.
// This is currently untested, so for now we are just returning default devices.
mal_assert(g_malOpenSLInitCounter > 0); /* <-- If you trigger this it means you've either not initialized the context, or you've uninitialized it before uninitializing the device. */
mal_assert(g_malOpenSLInitCounter > 0); /* <-- If you trigger this it means you've either not initialized the context, or you've uninitialized it and then attempted to initialize a new device. */
if (g_malOpenSLInitCounter == 0) {
return MAL_INVALID_OPERATION;
}
// For now, only supporting Android implementations of OpenSL|ES since that's the only one I've
// For now, only supporting Android implementations of OpenSL|ES since that's the only one I've
// been able to test with and I currently depend on Android-specific extensions (simple buffer
// been able to test with and I currently depend on Android-specific extensions (simple buffer
mal_assert(g_malOpenSLInitCounter > 0); /* <-- If you trigger this it means you've either not initialized the context, or you've uninitialized it and then attempted to start the device. */
mal_assert(g_malOpenSLInitCounter > 0); /* <-- If you trigger this it means you've either not initialized the context, or you've uninitialized it before stopping/uninitializing the device. */