Mercurial > hg > ristipolku
diff game/SoundManager.java @ 110:3551b61b3c0b
Increase buffer size a bit.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Thu, 03 Mar 2011 23:26:12 +0200 |
parents | dd896bc7352b |
children | 4c0dec72e2f0 |
line wrap: on
line diff
--- a/game/SoundManager.java Thu Mar 03 22:30:05 2011 +0200 +++ b/game/SoundManager.java Thu Mar 03 23:26:12 2011 +0200 @@ -245,7 +245,7 @@ // use a short, 100ms (1/10th sec) buffer for filters that // change in real-time - int bufferSize = playbackFormat.getFrameSize() * Math.round(playbackFormat.getSampleRate() / 20); + int bufferSize = playbackFormat.getFrameSize() * Math.round(playbackFormat.getSampleRate() / 10); // create, open, and start the line SourceDataLine line;