mariotaku / moonlight-tv

Lightweight NVIDIA GameStream Client, for LG webOS TV and embedded devices like Raspberry Pi
GNU General Public License v3.0
865 stars 31 forks source link

5.1 not working on fresh install #454

Closed RelicCornhusk closed 1 month ago

RelicCornhusk commented 1 month ago

Moonlight Version

1.6.18

Device Type

webOS TV

Device Model

LG C3

Device OS

webOS 8.4.0-16

Host OS

Windows

Host Software

Sunshine

Host Setup

Intel Core i5-12600K, AMD Radeon 6700XT, 16g RAM

Bug Description

I have tried many things already but I cannot output 5.1 audio from my Denon receiver when using Moonlight. It works otherwise for any other app on LG TV. I already set my TV audio to passthrough. Also I have set it on the Moonlight app to 5.1.

Reproduction Steps

To test, I've been opening steam big picture and opening any game. I've also tried modifying the steam streaming speakers audio configuration from stereo to 5.1 within windows while streaming.

Expected Behavior

Streaming 5.1 audio.

mariotaku commented 1 month ago

Did you enable "5.1 surround" in "Audio Settings" in Moonlight?

RelicCornhusk commented 1 month ago

Did you enable "5.1 surround" in "Audio Settings" in Moonlight?

Yes, even tested some other audio backends, but ended up leaving at auto since not all have the 5.1 option.

mariotaku commented 1 month ago

What about surround sound with this website? https://www2.iis.fraunhofer.de/AAC/multichannel.html

RelicCornhusk commented 1 month ago

Just tested this now and it's also not working for me. Tested with Firefox and Chrome. Opened a big picture session, minimized it, opened the link and played all the audios in the page. Only got stereo, despite the receiver being set to Auto and Moonlight being set to 5.1. Any ideas what could be the cause? I'm considering deleting the steam virtual devices from my computer and letting sunshine reinstall them.

Update: I have deleted all the steam devices on device manager and restarted the computer. Connected again on moonlight and audio works, but only in stereo. I see the Steam Streaming Speakers being used and configured for 5.1 on the control panel. However, the issue persists, I still only get stereo signal when playing from the multichannel test website.

mariotaku commented 1 month ago

What about streaming desktop? I'll try with my gear too.

RelicCornhusk commented 1 month ago

Same result as before when testing with Desktop instead of Steam

RelicCornhusk commented 1 month ago

I think I got it to work. Here is what I did. I went to a different app on webOS and played 5.1 content. It seems like the Denon receiver (S760H) switched to 5.1 at that moment and then stayed at 5.1. so I went to moonlight and sure enough, the content played at 5.1. I expected it to show PCM on the receiver's screen, but it shows Dolby Digital Surround (DSur). Is that how it should be?

Maybe in the future if this happens again, I'll try switching back and forth from stereo to auto on my receiver to see if it will match the content being streamed.

mariotaku commented 1 month ago

I see. You may need to set "HDMI ARC" to "Passthrough" to make sure the receiver gets surround sound. WIN_20240925_10_16_07_Pro

RelicCornhusk commented 1 month ago

Yes, I had mine set to Passthrough even before, so I'm not entirely sure what made it work now. Maybe it was just switching between the profiles in the receiver. I'll add another comment here if I find out any more details. Thanks for the quick assistance.