cleaned up some code in visualizer

This commit is contained in:
2018-04-15 14:18:35 -05:00
parent abf3028cfb
commit 874ef52bb9
3 changed files with 1 additions and 10 deletions

View File

@@ -103,11 +103,6 @@ public class DesktopVisualizer extends MusicManagerFFT implements Visualizer {
private int updateBufferPosition() {
int pos = (int) ((alGetSourcef(sourceID, AL11.AL_SAMPLE_OFFSET))-buffer.limit()-mm.getChannelCount()*mm.getReadWindowSize());
readWindowIndex = mm.getPlaybackIndexPosition()-1;
if (pos < 0) {
buffer.position(0);
} else {
buffer.position(pos);
}
return pos;
}