Revert "Try to workaround Java's poor OS X mixer"

This reverts commit 8390d0bbd7.
This commit is contained in:
Cameron Gutman
2013-12-20 19:44:35 -05:00
parent 03b6abe694
commit 01f7f3d780

View File

@@ -48,15 +48,7 @@ public class JavaxAudioRenderer implements AudioRenderer {
DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat);
try {
soundLine = (SourceDataLine) AudioSystem.getLine(info);
// 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.open(audioFormat);
soundLine.start();
lineBuffer = new byte[soundLine.getBufferSize()];