coreaudio: ensure we increment the tracking counter properly

Signed-off-by: Steven Noonan <steven@uplinklabs.net>
This commit is contained in:
Steven Noonan
2021-07-30 15:30:29 -07:00
committed by David Reid
parent 37fe1343f0
commit 4be3cc597a
+1 -1
View File
@@ -26525,8 +26525,8 @@ static ma_result ma_context__init_device_tracking__coreaudio(ma_context* pContex
propAddress.mSelector = kAudioHardwarePropertyDefaultOutputDevice;
((ma_AudioObjectAddPropertyListener_proc)pContext->coreaudio.AudioObjectAddPropertyListener)(kAudioObjectSystemObject, &propAddress, &ma_default_device_changed__coreaudio, NULL);
g_DeviceTrackingInitCounter_CoreAudio += 1;
}
g_DeviceTrackingInitCounter_CoreAudio += 1;
}
ma_spinlock_unlock(&g_DeviceTrackingInitLock_CoreAudio);