mirror of
https://github.com/mackron/miniaudio.git
synced 2026-04-23 16:54:03 +02:00
coreaudio: ensure we increment the tracking counter properly
Signed-off-by: Steven Noonan <steven@uplinklabs.net>
This commit is contained in:
committed by
David Reid
parent
37fe1343f0
commit
4be3cc597a
+1
-1
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user