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. */
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) {
if (g_malOpenSLInitCounter == 0) {
return MAL_INVALID_OPERATION;
return MAL_INVALID_OPERATION;
}
}
/* No exclusive mode with OpenSL|ES. */
if (shareMode == mal_share_mode_exclusive) {
return MAL_SHARE_MODE_NOT_SUPPORTED;
}
// 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.