Hogging is for user selected device only.
do not hog system device.
This commit is contained in:
@ -631,7 +631,9 @@ osx_output_enable(AudioOutput *ao, Error &error)
|
|||||||
return false;
|
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;
|
AURenderCallbackStruct callback;
|
||||||
callback.inputProc = osx_render;
|
callback.inputProc = osx_render;
|
||||||
@ -659,7 +661,9 @@ osx_output_disable(AudioOutput *ao)
|
|||||||
|
|
||||||
AudioComponentInstanceDispose(oo->au);
|
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
|
static void
|
||||||
|
Reference in New Issue
Block a user