-
Notifications
You must be signed in to change notification settings - Fork 347
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Respect Windows output device selection #740
Comments
3 tasks
snylonue
added a commit
to snylonue/anni
that referenced
this issue
Dec 23, 2023
the patch enables cpal to respect device selection on windows see: RustAudio/cpal#740
Yesterday17
pushed a commit
to ProjectAnni/anni
that referenced
this issue
Jan 1, 2024
* fix(anni-playback): recreate `CpalOutputStream` on device change * fix(anni-playback): recreate CpalOutputStream lazily Recreating immediately after device tends to fail * build: patch cpal the patch enables cpal to respect device selection on windows see: RustAudio/cpal#740 * fix(anni-playback): fix build on non-windows system * chore(anni-playback): avoid unnecessary mut * chore(anni-playback): reduce log level
This was referenced Mar 24, 2024
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Current behavior
I am using
rodio
to play audio on Windows 11. When I change the output device on Windows, the audio continues to play on the old device.There is a similar issue for macOS. But that is fixed in RustAudio/rodio#327.
The behavior I expected
On Windows, if user creates a device with
Device::default_output_device()
and plays audio through it, when user changes Windows's output device, the audio should play on the new device.Document:
https://learn.microsoft.com/en-us/windows/win32/coreaudio/relevant-device-notifications-for-stream-routing
https://learn.microsoft.com/en-us/windows/win32/coreaudio/device-events
Add
implement
feature towindows
crate:Implement IMMNotificationClient:
Register the
IMMNotificationClientWrapper
insrc\host\wasapi\device.rs
:The text was updated successfully, but these errors were encountered: