mozilla / cubeb-coreaudio-rs

The audio backend of Firefox on Mac OS X.
ISC License
25 stars 10 forks source link

Remove `kAudioUnitSubType_DefaultOutput` and its friend #156

Closed ChunMinChang closed 2 years ago

ChunMinChang commented 2 years ago

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.