Skip to content
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

Audio device keeps resetting to Streaming Speakers #2923

Closed
2 tasks done
JordanAnthonyKing opened this issue Jul 26, 2024 · 15 comments
Closed
2 tasks done

Audio device keeps resetting to Streaming Speakers #2923

JordanAnthonyKing opened this issue Jul 26, 2024 · 15 comments
Labels
audio:windows Audio issue in Windows

Comments

@JordanAnthonyKing
Copy link

JordanAnthonyKing commented Jul 26, 2024

Is there an existing issue for this?

  • I have searched the existing issues

Is your issue described in the documentation?

  • I have read the documentation

Is your issue present in the latest beta/pre-release?

None

Describe the Bug

I'd like to have my PC's speakers be the default audio output, with the game audio only going to the streaming speaker device. When I change my output device back to my PC's speakers however it instantly switched back to the streaming speakers. I can manually set each application to come through the PC, but this is annoying.

Expected Behavior

Should be able to change the default audio device while streaming

Additional Context

No response

Host Operating System

Windows

Operating System Version

Win11 23H2

Architecture

64 bit

Sunshine commit or version

0.23.1

Package

Windows - installer

GPU Type

Nvidia

GPU Model

RTX4070 (Mobile)

GPU Driver/Mesa Version

560.70

Capture Method

None

Config

output_name = \\.\DISPLAY70
controller = disabled
keyboard = disabled

Apps

No response

Relevant log output

N/A
@cgutman
Copy link
Collaborator

cgutman commented Jul 27, 2024

Try setting the Audio Sink option in the A/V tab to "Steam Streaming Speakers"

@JordanAnthonyKing
Copy link
Author

I misspoke, I'm using the desktop streaming to stream my second monitor not a game. Setting the audio sink options doesn't change anything, it still resets the device as soon as I change it.

@ReenigneArcher
Copy link
Member

I can manually set each application to come through the PC, but this is annoying.

Sunshine doesn't manage application audio, so this is really the only way.

@ReenigneArcher ReenigneArcher added the audio:windows Audio issue in Windows label Jul 28, 2024
@JordanAnthonyKing
Copy link
Author

Sunshine doesn't manage application audio, so this is really the only way.

But why is it resetting the output device of the entire system?

@ReenigneArcher
Copy link
Member

By default Sunshine will use Steam streaming speakers while the stream is active, then revert back to the original default speakers when the stream is not active.

This is when "the play audio on host PC" option is disabled.

@JordanAnthonyKing
Copy link
Author

This is when "the play audio on host PC" option is disabled.

I don't see this option in the settings?

@ReenigneArcher
Copy link
Member

It's in Moonlight clients.

@JordanAnthonyKing
Copy link
Author

Enabling that option prevents you from sending sound to each device separately

@TheMourningDawn
Copy link

I think I'm having a similar problem. The issue is that I start streaming to another client, and it (as expected) changes my audio device to the "Speakers (Steam streaming speakers)". That's all well and good. But unlike the past, I'm unable to change my audio device through windows to another device. It immediately switches back to the streaming speakers.

I want to use my Arctis 7 headphones for my entire system while I'm streaming. I used to be able to do this. I use the xbox game bar to join Xbox parties while playing games, and that uses the system audio. I'm not using the windows service, but the portable version, as I am using a pre-release version of Sunshine because I want to be able to use the new screen capture mode so that I can access the xbox game bar in my client.

This is what shows in the terminal every time I try to change my audio device and it switches back:

[2024:08:06:22:31:42]: Info: Resetting sink to [virtual-Stereo{0.0.0.00000000}.{f41a72e7-0902-4a5e-b43e-af04064711d8}] after default changed [2024:08:06:22:31:42]: Info: Changed virtual audio sink format to [S32 48000 2.0] [2024:08:06:22:31:42]: Info: Reinitializing audio capture [2024:08:06:22:31:42]: Info: Audio capture format is [F32 48000 2.0] [2024:08:06:22:31:43]: Info: Resetting sink to [virtual-Stereo{0.0.0.00000000}.{f41a72e7-0902-4a5e-b43e-af04064711d8}] after default changed [2024:08:06:22:31:43]: Info: Changed virtual audio sink format to [S32 48000 2.0] [2024:08:06:22:31:43]: Info: Reinitializing audio capture [2024:08:06:22:31:43]: Info: Audio capture format is [F32 48000 2.0]

@LizardByte-bot
Copy link
Member

It seems this issue hasn't had any activity in the past 90 days. If it's still something you'd like addressed, please let us know by leaving a comment. Otherwise, to help keep our backlog tidy, we'll be closing this issue in 10 days. Thanks!

@JordanAnthonyKing
Copy link
Author

Yes I still deal with this daily.

@cgutman
Copy link
Collaborator

cgutman commented Nov 6, 2024

This is the solution: #2923 (comment)

@ReenigneArcher ReenigneArcher closed this as not planned Won't fix, can't repro, duplicate, stale Nov 7, 2024
@JordanAnthonyKing
Copy link
Author

This is the solution: #2923 (comment)

Enabling that option prevents you from sending sound to each device separately

@ReenigneArcher
Copy link
Member

ReenigneArcher commented Nov 7, 2024

Sunshine is not able to capture sound from single applications. All we can reasonably do is change your default audio device. We have guides in our docs on how to re-route audio, such as from Discord, to not be streamed.

@Tails32
Copy link

Tails32 commented Nov 23, 2024

I am also having an issue with this behavior. Would it not be possible to adjust this behavior on the server side? I do want to stream my audio to clients, but I also need my Discord audio to be separated.

If there was at least an option to not change the "Default Communication Device" in Windows, that would help a lot. Discord could continue to use the default communication device and Sunlight could adjust only the default audio device. Currently it changes both defaults constantly.

If it only changed the default audio device there would be no need to edit the Discord settings or use qpwgraph which seems to not be intended for use on Windows.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio:windows Audio issue in Windows
Projects
None yet
Development

No branches or pull requests

6 participants