mirror of
https://github.com/moonlight-stream/moonlight-common-c.git
synced 2026-10-26 22:09:59 +00:00
Code cleanup: use stdbool.h
This commit is contained in:
1 parent
e9ee868da4
commit
5f9f7ce407
27 files changed
+286
-299
No files matched your search
+3
-3
@@ -365,14 +365,14 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
||||
|
||||
// Let the audio stream code know that it needs to disable coupled streams when
|
||||
// decoding this audio stream.
|
||||
HighQualitySurroundEnabled = 1;
|
||||
HighQualitySurroundEnabled = true;
|
||||
|
||||
// Use 5 ms frames since we don't have a slow decoder
|
||||
AudioPacketDuration = 5;
|
||||
}
|
||||
else {
|
||||
err |= addAttributeString(&optionHead, "x-nv-audio.surround.AudioQuality", "0");
|
||||
HighQualitySurroundEnabled = 0;
|
||||
HighQualitySurroundEnabled = false;
|
||||
|
||||
if ((AudioCallbacks.capabilities & CAPABILITY_SLOW_OPUS_DECODER) != 0) {
|
||||
// Use 20 ms packets for slow decoders to save CPU time
|
||||
@@ -397,7 +397,7 @@ static PSDP_OPTION getAttributesList(char*urlSafeAddr) {
|
||||
AudioPacketDuration = 5;
|
||||
|
||||
// High quality audio mode not supported on legacy servers
|
||||
HighQualitySurroundEnabled = 0;
|
||||
HighQualitySurroundEnabled = false;
|
||||
}
|
||||
|
||||
if (AppVersionQuad[0] >= 7) {
|
||||
|
||||
Reference in new issue
Block a user