Hogging is for user selected device only.
do not hog system device.
This commit is contained in:
parent
ac4b83046a
commit
4a8a33ea85
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue