mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 22:09:59 +00:00
Fix HEVC streams requiring a higher bitrate to enable high quality surround audio
This commit is contained in:
1 parent
4c47dd74ad
commit
679f6e83bb
3 files changed
+5
-1
No files matched your search
+2
-1
@@ -362,7 +362,8 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
||||
}
|
||||
|
||||
if (AppVersionQuad[0] >= 7) {
|
||||
if (StreamConfig.bitrate > HIGH_BITRATE_THRESHOLD && audioChannelCount > 2) {
|
||||
// Decide to use HQ audio based on the original video bitrate, not the HEVC-adjusted value
|
||||
if (OriginalVideoBitrate >= HIGH_BITRATE_THRESHOLD && audioChannelCount > 2) {
|
||||
// Enable high quality mode for surround sound
|
||||
err |= addAttributeString(&optionHead, "x-nv-audio.surround.AudioQuality", "1");
|
||||
|
||||
|
||||
Reference in new issue
Block a user