mirror of
https://github.com/moonlight-stream/moonlight-embedded.git
synced 2026-04-23 00:26:42 +00:00
Revert "Try to workaround Java's poor OS X mixer"
This reverts commit 8390d0bbd7.
This commit is contained in:
@@ -48,15 +48,7 @@ public class JavaxAudioRenderer implements AudioRenderer {
|
|||||||
DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat);
|
DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat);
|
||||||
try {
|
try {
|
||||||
soundLine = (SourceDataLine) AudioSystem.getLine(info);
|
soundLine = (SourceDataLine) AudioSystem.getLine(info);
|
||||||
|
soundLine.open(audioFormat);
|
||||||
// Java's OS X mixer performs very badly with the default buffer size
|
|
||||||
if (System.getProperty("os.name").contains("Mac OS X")) {
|
|
||||||
soundLine.open(audioFormat, 16384);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
soundLine.open(audioFormat);
|
|
||||||
}
|
|
||||||
|
|
||||||
soundLine.start();
|
soundLine.start();
|
||||||
|
|
||||||
lineBuffer = new byte[soundLine.getBufferSize()];
|
lineBuffer = new byte[soundLine.getBufferSize()];
|
||||||
|
|||||||
Reference in New Issue
Block a user