As part of #152, the audio_unit_from_device_id function used to force a audio device of type HalOutput but now will distinguish between HalOutput and DefaultOutput depending on whether the device id requested is a default device.
I think that is a reasonable change from what it looks, but as a side effect, the user cannot create a HalOutput from a default device and cannot enter exclusive mode (hogging mode).
I do wonder what is the benefits of using DefaultOutput vs. HalOutput and I think if we are not going to revert the behavior it is probably better adding a new flag/function to allow creation of an HalOutput regardless whether the requested device is default or not?
As part of #152, the
audio_unit_from_device_idfunction used to force a audio device of type HalOutput but now will distinguish between HalOutput and DefaultOutput depending on whether the device id requested is a default device.I think that is a reasonable change from what it looks, but as a side effect, the user cannot create a HalOutput from a default device and cannot enter exclusive mode (hogging mode).
I do wonder what is the benefits of using DefaultOutput vs. HalOutput and I think if we are not going to revert the behavior it is probably better adding a new flag/function to allow creation of an HalOutput regardless whether the requested device is default or not?