ma_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. */
ma_assert(g_maOpenSLInitCounter > 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. */
ma_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. */
ma_assert(g_maOpenSLInitCounter > 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. */
ma_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. */
ma_assert(g_maOpenSLInitCounter > 0); /* <-- If you trigger this it means you've either not initialized the context, or you've uninitialized it before uninitializing the device. */
if (g_malOpenSLInitCounter == 0) {
if (g_maOpenSLInitCounter == 0) {
return;
return;
}
}
...
@@ -21233,8 +21233,8 @@ ma_result ma_device_init__opensl(ma_context* pContext, const ma_device_config* p
...
@@ -21233,8 +21233,8 @@ ma_result ma_device_init__opensl(ma_context* pContext, const ma_device_config* p
{
{
(void)pContext;
(void)pContext;
ma_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. */
ma_assert(g_maOpenSLInitCounter > 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) {
if (g_maOpenSLInitCounter == 0) {
return MA_INVALID_OPERATION;
return MA_INVALID_OPERATION;
}
}
...
@@ -21282,7 +21282,7 @@ ma_result ma_device_init__opensl(ma_context* pContext, const ma_device_config* p
...
@@ -21282,7 +21282,7 @@ ma_result ma_device_init__opensl(ma_context* pContext, const ma_device_config* p
ma_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. */
ma_assert(g_maOpenSLInitCounter > 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. */
ma_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. */
ma_assert(g_maOpenSLInitCounter > 0); /* <-- If you trigger this it means you've either not initialized the context, or you've uninitialized it before stopping/uninitializing the device. */