Commit 4a8a33ea authored by Yue Wang's avatar Yue Wang Committed by GitHub

Hogging is for user selected device only.

do not hog system device.
parent ac4b8304
......@@ -631,7 +631,9 @@ osx_output_enable(AudioOutput *ao, Error &error)
return false;
}
osx_output_hog_device(oo->dev_id, true);
if (oo->component_subtype == kAudioUnitSubType_HALOutput) {
osx_output_hog_device(oo->dev_id, true);
}
AURenderCallbackStruct callback;
callback.inputProc = osx_render;
......@@ -659,7 +661,9 @@ osx_output_disable(AudioOutput *ao)
AudioComponentInstanceDispose(oo->au);
osx_output_hog_device(oo->dev_id, false);
if (oo->component_subtype == kAudioUnitSubType_HALOutput) {
osx_output_hog_device(oo->dev_id, false);
}
}
static void
......
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