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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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