We use kAudioUnitSubType_DefaultOutput to create an AudioUnit when users request to use the default output device. However, we can use kAudioUnitSubType_HALOutput to achieve what we want as well, like what chromium does, and we don't need a DEV_SYSTEM_DEFAULT anymore after doing this. This simplifies the code path and remove the unnecessary bit flag.
We use
kAudioUnitSubType_DefaultOutput
to create anAudioUnit
when users request to use the default output device. However, we can usekAudioUnitSubType_HALOutput
to achieve what we want as well, like what chromium does, and we don't need aDEV_SYSTEM_DEFAULT
anymore after doing this. This simplifies the code path and remove the unnecessary bit flag.