mozilla / cubeb-coreaudio-rs

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

Monitor explicitly chosen output devices for liveness #186

Closed Pehrsons closed 11 months ago

Pehrsons commented 11 months ago

This mirrors what is done for input devices, and enables the output tests. This fixes cubeb's behavior with Firefox when unplugging a device that is being played to with setSinkId and that does not affect the default device (we used to always install the default-output listener and therefore changes to the default device would trigger a reinit, which would result in an error if the device no longer exists).

Pehrsons commented 11 months ago

I see this is a new take on #170, well let me know what you think.