Skip to content

WASAPI: incorrect StreamInvalidated instead of DeviceChanged when default device changes #1339

Description

@Timbals

#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).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions