#1267 stopped emitting DeviceChanged claiming that WASAPI doesn't automatically reroute streams to changed default devices, but that does not seem to be true.
It's documented here:
https://learn.microsoft.com/en-us/windows/win32/coreaudio/automatic-stream-routing
I also tested this on my machine and audio does change device even when not re-creating the stream. I only tested with audio output, so I can't say for sure that it also works for input but the documentation claims it.
Re-creating the stream also takes longer than the automatic rerouting (an additional ~50ms in my configuration).
#1267 stopped emitting
DeviceChangedclaiming that WASAPI doesn't automatically reroute streams to changed default devices, but that does not seem to be true.It's documented here:
https://learn.microsoft.com/en-us/windows/win32/coreaudio/automatic-stream-routing
I also tested this on my machine and audio does change device even when not re-creating the stream. I only tested with audio output, so I can't say for sure that it also works for input but the documentation claims it.
Re-creating the stream also takes longer than the automatic rerouting (an additional ~50ms in my configuration).