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

Streaming audio has a chance of disappearing #2552

Closed
3 tasks done
SakiBiAnNya opened this issue May 22, 2024 · 6 comments
Closed
3 tasks done

Streaming audio has a chance of disappearing #2552

SakiBiAnNya opened this issue May 22, 2024 · 6 comments
Labels

Comments

@SakiBiAnNya
Copy link

SakiBiAnNya commented May 22, 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 nightly release?

  • This issue is present in the nightly release

Describe the Bug

When switching from one audio-producing application to another (e.g., pausing current audio and then switching to another program, such as pausing a video in the browser and switching to a music application to play music), there is a chance that the streamed audio disappears. I have already reset the Windows audio system and Sunshine's audio capture device to their defaults, and manually reinstalled the audio driver (Steam Virtual Audio), but the issue persists. When this problem occurs, I have to disconnect and reconnect Moonlight, and then the audio returns to normal. This issue occurs on both the Android and PC ends, and I have ruled out it being a problem with Moonlight. However, even after these steps, the problem persists, and I am forced to repeatedly disconnect and reconnect to resolve it.
1
2

Expected Behavior

No response

Additional Context

No response

Host Operating System

Windows

Operating System Version

win10 22h2

Architecture

64 bit

Sunshine commit or version

0.23.1.26ceec5f3c97b0130b82cb28ba53c3b4dafc8419

Package

Windows - installer

GPU Type

Nvidia

GPU Model

rtx3060ti

GPU Driver/Mesa Version

552.12

Capture Method (Linux Only)

No response

Config

locale = zh
install_steam_audio_drivers = disabled
upnp = enabled
channels = 3
address_family = both
audio_sink = NVIDIA High Definition Audio
virtual_sink = NVIDIA High Definition Audio
min_log_level = 3

Apps

No response

Relevant log output

[2024:05:22:23:30:11]: Error: NvEnc: encoding format is not supported by the gpu
[2024:05:22:23:30:17]: Error: NvEnc: encoding format is not supported by the gpu
[2024:05:23:00:44:04]: Error: NvEnc: encoding format is not supported by the gpu
[2024:05:23:00:44:05]: Error: Couldn't get default audio endpoint [0x80070490]
[2024:05:23:00:44:05]: Warning: There will be no audio
[2024:05:23:00:44:05]: Error: Unable to initialize audio capture. The stream will not have audio.
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:00:51:36]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:32]: Error: Couldn't get default audio endpoint [0x80070490]
[2024:05:23:01:13:32]: Warning: There will be no audio
[2024:05:23:01:13:32]: Error: Unable to initialize audio capture. The stream will not have audio.
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:13:51]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:17:00]: Warning: WSASendMsg() failed: 10022
[2024:05:23:01:27:01]: Error: Couldn't get default audio endpoint [0x80070490]
[2024:05:23:01:27:01]: Warning: Couldn't re-initialize audio input
[2024:05:23:01:27:01]: Error: No displays were found after reenumeration!
[2024:05:23:01:27:02]: Error: Failed to locate an output device
[2024:05:23:01:27:02]: Warning: Audio sink not found: {0.0.0.00000000}.{c34f5f83-62dc-49d5-a56d-7021632e1e49}
[2024:05:23:01:27:02]: Warning: Audio sink not found: {0.0.0.00000000}.{c34f5f83-62dc-49d5-a56d-7021632e1e49}
[2024:05:23:01:27:02]: Warning: Audio sink not found: {0.0.0.00000000}.{c34f5f83-62dc-49d5-a56d-7021632e1e49}
[2024:05:23:01:27:03]: Error: Failed to locate an output device
[2024:05:23:10:17:32]: Error: NvEnc: encoding format is not supported by the gpu
[2024:05:23:10:18:11]: Error: No IGD device found
[2024:05:23:10:19:10]: Error: NvEnc: encoding format is not supported by the gpu
@tvoracek
Copy link

Same issue. For me there is no sound if I switch from running app such as Witcher3 back to Moonlight UI (ShieldTV) and then resume session with the game. Many times there is no sound and I need to close the game and start it again to have sound. Wasn't a problem before. Can't remember but I am experiencing it for last few months at least. Using nightly version.

@RebelliousX
Copy link

@tvoracek same here. This has been bothering me a lot since using Shield controller, it is very easily to accidentally push Home button next to the right stick, I lose audio when resuming session. I had to quit the session and consequently, quit steam and the running game, and try a new session for the audio to work.

@tvoracek
Copy link

tvoracek commented Sep 8, 2024

Hmm. I guess it was fixed some time ago as I no longer see this issue with latest nightly versions.

@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!

@LizardByte-bot
Copy link
Member

This issue was closed because it has been stalled for 10 days with no activity.

@LizardByte-bot LizardByte-bot closed this as not planned Won't fix, can't repro, duplicate, stale Dec 18, 2024
@RebelliousX
Copy link

RebelliousX commented Dec 23, 2024

I never used Virtual Audio Cable, I wonder if it will help in this case? But, asking Moonlight to keep playing audio on Host PC I believe will prevent this from happening. The issue becomes then how to mute when client gets connected and unmute when disconnected (not session ending, the DO command run, UNDO doesn't until session ends, not client disconnected). I use SetVol app for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants