Ryujinx icon indicating copy to clipboard operation
Ryujinx copied to clipboard

Ryujinx does not respect audio output setting

Open SteelDrake opened this issue 3 years ago • 9 comments

Bug Report

What's the issue you encountered?

Ryujinx only outputs audio to speakers despite changing the output device in Windows settings. Doesn't seem to matter if you change the system output or just the app output.

How can the issue be reproduced?

  • Have 2 audio devices plugged in, like speakers and a TV connected by HDMI
  • Switch audio outputs either at the tray icon or in Windows 10 audio settings (System > Audio > App volume and device preferences)
  • Audio will still be heard from speakers when you start any game

Log file

N/A

Environment?

  • Ryujinx version: 1.0.7101
  • System Specs:
    • OS: Windows 10
    • CPU: Ryzen 5 3600
    • GPU: NVIDIA RTX 2060 Super
    • RAM: 16gb

Additional context?

Additional info about your environment:

SteelDrake avatar Nov 10 '21 01:11 SteelDrake

Which audio backend are you using on Ryujinx?

gdkchan avatar Nov 10 '21 01:11 gdkchan

OpenAL.

SteelDrake avatar Nov 10 '21 02:11 SteelDrake

Ryujinx will grab a session with whichever audio output device was the default when you opened the emulator, if you change audio outputs, and then restart the emulator, does it use the "correct" audio output device?

jduncanator avatar Nov 11 '21 08:11 jduncanator

Did some testing and it only changed when I started it with a backend other than OpenAL.

SteelDrake avatar Nov 11 '21 21:11 SteelDrake

This issue appears to still exist. I have it in the latest v1.1.739. What's going on? One would have thought this is now fixed after 18 months. Thanks.

supermansaga avatar Apr 30 '23 17:04 supermansaga

Only one person reported this issue so far (well, 2 now counting with you), so it doesn't seems to be something that affects everyone. And it's still unclear if this is something that only happens with OpenAL audio backend or all of them.

gdkchan avatar Apr 30 '23 17:04 gdkchan

Only one person reported this issue so far (well, 2 now counting with you), so it doesn't seems to be something that affects everyone. And it's still unclear if this is something that only happens with OpenAL audio backend or all of them.

I changed audio backend from dummy to openAL in settings and now the sound is restored. Phew. Thanks.

supermansaga avatar Apr 30 '23 17:04 supermansaga

I changed audio backend from dummy to openAL in settings and now the sound is restored. Phew. Thanks.

Thanks for this advice. I was experiencing a similar bug except that I had NO sound output regardless of which audio backend I selected. I ensured the correct audio device was selected in Windows 11 audio settings (both the global setting and the per-app setting) yet regardless of which audio backend I selected (and fully restarting the emulator each time), I was getting NO sound output. Finally, after reading your comment, I stopped emulation, selected the "Dummy" audio backend, clicked "Apply" and then "Save", reopened the Settings, selected "OpenAL", clicked "Apply" and then "Save", and finally, after restarting emulation, I had audio. There is clearly some type of bug happening with the audio here. Although, it definitely wouldn't surprise me if the bug was Windows related rather than the emulator (though hopefully the issue can be discovered and worked around regardless as I haven't seen this type of behavior with other emulators/applications).

lahma0 avatar May 15 '23 22:05 lahma0

Seems to be an issue if you activate vsync via Tab after emulation has started.

rbeier avatar May 18 '23 13:05 rbeier