Commit fb085746 authored by David Reid's avatar David Reid

Core Audio: Fix an error with stream routing.

parent 02af2cff
...@@ -14815,8 +14815,10 @@ OSStatus mal_default_output_device_changed__coreaudio(AudioObjectID objectID, UI ...@@ -14815,8 +14815,10 @@ OSStatus mal_default_output_device_changed__coreaudio(AudioObjectID objectID, UI
#ifdef MAL_DEBUG_OUTPUT #ifdef MAL_DEBUG_OUTPUT
printf("Device Changed: addressCount=%d, pAddresses[0].mElement=%d\n", addressCount, pAddresses[0].mElement); printf("Device Changed: addressCount=%d, pAddresses[0].mElement=%d\n", addressCount, pAddresses[0].mElement);
#endif #endif
pDevice->coreaudio.isSwitchingDevice = MAL_TRUE;
mal_result reinitResult = mal_device_reinit_internal__coreaudio(pDevice, MAL_TRUE); mal_result reinitResult = mal_device_reinit_internal__coreaudio(pDevice, MAL_TRUE);
pDevice->coreaudio.isSwitchingDevice = MAL_FALSE;
if (reinitResult == MAL_SUCCESS) { if (reinitResult == MAL_SUCCESS) {
mal_device__post_init_setup(pDevice); mal_device__post_init_setup(pDevice);
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