cleaned up some code in visualizer
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user