mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-10-20 15:27:18 +00:00
Merge commit 'Dynamically choose line buffer sizes on Pi to reduce audio lag'
This commit is contained in:
commit
5715d642e8
1 file changed
+2
-9
@@ -136,15 +136,8 @@ public class JavaxAudioRenderer implements AudioRenderer {
|
||||
this.channelCount = channelCount;
|
||||
this.sampleRate = sampleRate;
|
||||
|
||||
// Workaround OS X's bad Java mixer
|
||||
if (System.getProperty("os.name").contains("Mac OS X")) {
|
||||
createSoundLine(STARING_BUFFER_SIZE);
|
||||
reallocateLines = true;
|
||||
}
|
||||
else {
|
||||
createSoundLine(DEFAULT_BUFFER_SIZE);
|
||||
reallocateLines = false;
|
||||
}
|
||||
createSoundLine(STARING_BUFFER_SIZE);
|
||||
reallocateLines = true;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user