mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-12-01 02:05:06 +00:00
Fix high-quality surround sound breaking audio when streaming over the Internet or IPv6
This commit is contained in:
1 parent
c322ed9437
commit
a9780361a3
5 files changed
+14
-1
No files matched your search
@@ -319,11 +319,13 @@ int startAudioStream(void* audioContext, int arFlags) {
|
||||
int err;
|
||||
OPUS_MULTISTREAM_CONFIGURATION chosenConfig;
|
||||
|
||||
// TODO: Get these from RTSP ANNOUNCE surround-params
|
||||
if (StreamConfig.audioConfiguration == AUDIO_CONFIGURATION_STEREO) {
|
||||
chosenConfig = opusStereoConfig;
|
||||
}
|
||||
else if (StreamConfig.audioConfiguration == AUDIO_CONFIGURATION_51_SURROUND) {
|
||||
if (HighQualitySurroundEnabled) {
|
||||
LC_ASSERT(HighQualitySurroundSupported);
|
||||
chosenConfig = opus51HighSurroundConfig;
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in new issue
Block a user