Hogging is for user selected device only.

do not hog system device.
This commit is contained in:
Yue Wang 2016-09-18 13:15:46 -07:00 committed by GitHub
parent ac4b83046a
commit 4a8a33ea85

View File

@ -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