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

Stream loses audio after network hiccup #493

Open
kentyman23 opened this issue Jan 7, 2025 · 6 comments
Open

Stream loses audio after network hiccup #493

kentyman23 opened this issue Jan 7, 2025 · 6 comments
Labels
audio Issues related to audio playback bug Something isn't working

Comments

@kentyman23
Copy link

Moonlight Version

1.6.25

Device Type

webOS TV

Device Model

LC C2

Device OS

webOS 8.3.0

Host OS

Windows

Host Software

Sunshine

Host Setup

  • AMD Ryzen 5 5600X
  • NVIDIA GeForce RTX 4070
  • 32 GB of RAM
  • Windows 11 Pro

Bug Description

When using the experimental 5.1 surround sound, I semi-regularly hit a problem where sound cuts out on the stream entirely. This often coincides with a network hiccup (over wireless) where it mentions Unstable Network in the top right. However, sometimes it goes away when that message isn't shown, and I've also seen that message be shown where audio does not cut out. Suspending the stream and rejoining does not seem to fix it, so I usually quit the game+stream and just relaunch it.

I believe I have seen this since one of the first versions that added 5.1 surround. I do not remember ever seeing this without surround enabled, though I'm not positive this is true.

Is there any other information I can add to this bug report to make it easier to fix such as logging? I do not have a rooted device.

Reproduction Steps

  1. Stream using 5.1 surround sound.
  2. Have wireless network hiccup that is bad enough to mention Unstable Network in the top right.
  3. Audio no longer comes through on the stream.

Expected Behavior

Audio continues to work.

@kentyman23 kentyman23 added the bug Something isn't working label Jan 7, 2025
@mariotaku mariotaku added the audio Issues related to audio playback label Jan 8, 2025
@mariotaku
Copy link
Owner

Since there are new updates, would you like to try that first? Somehow I can't reproduce on my webOS 5 TV with 15% packet loss.

@CraftWorksMC
Copy link

Can confirm it happens too on my TV: LG 55UN70006LA, WebOS 5.5
Connected via wifi. Audio cuts out after a few seconds or minutes of playing.

Not sure if it's connected to this issue, Sunshine with debug logs also prints out:

[2025:01:09:15:44:25]: Debug: type [Unknown] { 5502 }
---data---
01002801000E0006000F00060087768D765A080000
---end data---

around the same time the stream loses audio.

I recorded a video of it happening:
https://github.com/user-attachments/assets/f81183ba-3526-45c8-ab0e-fb9ae57a15eb

@mariotaku
Copy link
Owner

Hi @CraftWorksMC, do you experience it when you stream desktop too?

@CraftWorksMC
Copy link

Yes, it lasted a bit longer this time but it still cut out.

@mariotaku
Copy link
Owner

@CraftWorksMC What about stereo? Does it stop and you have to restart streaming?

@CraftWorksMC
Copy link

With it set to stereo, using the NDL-WebOS5 backend it works flawlessly, rarely the audio stutters a bit, probably because of the connection, but the sound continues to work. Uses the PCM-S16LE codec.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
audio Issues related to audio playback bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants