Fix high-quality surround sound breaking audio when streaming over the Internet or IPv6

This commit is contained in:
Cameron Gutman committed 2019-08-04 15:05:40 -07:00
1 parent c322ed9437
commit a9780361a3
5 files changed
+14 -1

No files matched your search

+2
View File
@@ -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 {