mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-06-18 14:51:30 +00:00
Suppress Opus header assert with Sunshine
This commit is contained in:
+3
-2
@@ -215,8 +215,9 @@ static void decodeInputData(PQUEUED_AUDIO_PACKET packet) {
|
|||||||
// Opus header should stay constant for the entire stream.
|
// Opus header should stay constant for the entire stream.
|
||||||
// If it doesn't, it may indicate that the RtpAudioQueue
|
// If it doesn't, it may indicate that the RtpAudioQueue
|
||||||
// incorrectly recovered a data shard or the decryption
|
// incorrectly recovered a data shard or the decryption
|
||||||
// of the audio packet failed.
|
// of the audio packet failed. Sunshine violates this for
|
||||||
LC_ASSERT(decryptedOpusData[0] == opusHeaderByte);
|
// surround sound in some cases, so just ignore it.
|
||||||
|
LC_ASSERT(decryptedOpusData[0] == opusHeaderByte || IS_SUNSHINE());
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user