Commit 4be3cc59 authored by Steven Noonan's avatar Steven Noonan Committed by David Reid

coreaudio: ensure we increment the tracking counter properly

Signed-off-by: default avatarSteven Noonan <steven@uplinklabs.net>
parent 37fe1343
...@@ -26525,8 +26525,8 @@ static ma_result ma_context__init_device_tracking__coreaudio(ma_context* pContex ...@@ -26525,8 +26525,8 @@ static ma_result ma_context__init_device_tracking__coreaudio(ma_context* pContex
propAddress.mSelector = kAudioHardwarePropertyDefaultOutputDevice; propAddress.mSelector = kAudioHardwarePropertyDefaultOutputDevice;
((ma_AudioObjectAddPropertyListener_proc)pContext->coreaudio.AudioObjectAddPropertyListener)(kAudioObjectSystemObject, &propAddress, &ma_default_device_changed__coreaudio, NULL); ((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); ma_spinlock_unlock(&g_DeviceTrackingInitLock_CoreAudio);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment