-
-
Notifications
You must be signed in to change notification settings - Fork 828
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
Ruffle not switching audio #10704
Comments
I just tried it and I cannot reproduce the issue. Maybe it's an issue with your PC's audio drivers. |
I don't really update my drivers mich, so I'm not sure |
This might very well be a driver problem indeed: https://answers.microsoft.com/en-us/windows/forum/all/windows-10-not-switching-between-headphones-and/6241f6ae-bfb1-4658-894a-89315dec33c6 |
maybe, if I was having this problem 5 years ago |
No, its definitely Ruffle desktop Desktop still has the issue where unplugging headphones just kills audio, no matter how many time I switch, or mess with volume mixer I have no idea what kind of driver would only make Ruffle desktop not work, and everything else work just fine. |
Okay, I finally managed to reproduce the issue. It happens on my Windows laptop when I unplug USB-C headphones, which use a separate driver from the Realtek driver for the built-in speakers and headphone jack. Here is the error that occurs: |
Related to RustAudio/cpal#373, RustAudio/cpal#740, RustAudio/cpal#754 |
I don't even use USB C headphones I do get the same error when using ruffle from the command line |
The problem is that querying the current default output with WASAPI returns the specific device (i.e. Realtek(R) Speakers) that is the current default rather than a "proxy value" that always points to the default audio device. This means that the program itself has to change its output device whenever the default output device changes (for example by registering a You can easily reproduce this using just the
However, by using a |
Thank you for the explanation and for rebasing your PR! Looking forward to seeing it merged in the future 👍 |
Describe the bug
when I open ruffle and then plug in my headphones, ruffle does not switch audio to my headphones, while everthing else does
Expected behavior
pretty sure this never used to be an issue
Affected platform
Desktop app
Operating system
Windows 10
Browser
No response
Additional information
No response
The text was updated successfully, but these errors were encountered: