moonlight-stream / moonlight-embedded

Gamestream client for embedded systems
https://github.com/moonlight-stream/moonlight-embedded/wiki
GNU General Public License v3.0
1.49k stars 324 forks source link

Fix surround sound on a resumed session #785

Closed cgutman closed 4 years ago

cgutman commented 4 years ago

Description The surroundAudioInfo parameter needs to be provided on /resume also, otherwise the stream will be forced to stereo and a No surround parameters found error will be emitted from moonlight-common-c when establishing the RTSP connection.

I also took advantage of the new SURROUNDAUDIOINFO_FROM_AUDIO_CONFIGURATION() in moonlight-common-c to avoid hardcoding surround audio parameters.

Purpose Fix surround sound audio when resuming a previously launched session.