Commit 2f5891bd authored by David Fuhrmann's avatar David Fuhrmann

auhal: ignore changed default device in digital mode

This fixes nonfunctional playback when more than one audio device
is installed.

close #9924
parent 8b6eec54
...@@ -1581,12 +1581,12 @@ static OSStatus DefaultDeviceChangedListener(AudioObjectID inObjectID, UInt32 i ...@@ -1581,12 +1581,12 @@ static OSStatus DefaultDeviceChangedListener(AudioObjectID inObjectID, UInt32 i
msg_Dbg(p_aout, "default device changed to %i", defaultDeviceID); msg_Dbg(p_aout, "default device changed to %i", defaultDeviceID);
/* /* Default device is changed by the os to allow other apps to play sound while in digital
* The default device id changes to 0 when switching to SPDIF for whatever reason. mode. But this should not affect ourself. */
* We need to ignore that. if (p_aout->sys->b_digital) {
*/ msg_Dbg(p_aout, "ignore, as digital mode is active");
if(defaultDeviceID == 0)
return noErr; return noErr;
}
/* Also ignore events which announce the same device id */ /* Also ignore events which announce the same device id */
if(defaultDeviceID == p_aout->sys->i_selected_dev) if(defaultDeviceID == p_aout->sys->i_selected_dev)
......
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