diff --git a/core/src/zero1hd/rhythmbullet/RhythmBullet.java b/core/src/zero1hd/rhythmbullet/RhythmBullet.java index a83461d..2241b38 100755 --- a/core/src/zero1hd/rhythmbullet/RhythmBullet.java +++ b/core/src/zero1hd/rhythmbullet/RhythmBullet.java @@ -93,10 +93,6 @@ public class RhythmBullet extends Game { getrRHandler().setResolution(getPrefs().getInteger("screen-width"), getPrefs().getInteger("screen-height")); - Gdx.app.debug("Prelaunch Debug Info", "\ncurrent window size: " - + Gdx.graphics.getWidth() + "x" + Gdx.graphics.getHeight() +"\n" - + "Pixel density (PPI): " + Gdx.graphics.getDensity()); - queueAssets(); setScreen(initialScreen); diff --git a/core/src/zero1hd/rhythmbullet/audio/visualizer/HorizontalVisualizer.java b/core/src/zero1hd/rhythmbullet/audio/visualizer/HorizontalVisualizer.java index c324074..6dccd75 100755 --- a/core/src/zero1hd/rhythmbullet/audio/visualizer/HorizontalVisualizer.java +++ b/core/src/zero1hd/rhythmbullet/audio/visualizer/HorizontalVisualizer.java @@ -120,7 +120,7 @@ public class HorizontalVisualizer implements Disposable { public void setMM(MusicManager mm) { maxAvgHeight = 0; currentAvg = 0; - float validBins = (2200/((mm.getSampleRate()/2)/((mm.getReadWindowSize()/2)+1))); + float validBins = (4200/((mm.getSampleRate()/2)/((mm.getReadWindowSize()/2)+1))); Gdx.app.debug("Visualizer", "valid frequency bins " + validBins); binsPerBar = MathUtils.round((validBins/barCount)); barHeights = new float[barCount]; diff --git a/desktop/src/zero1hd/rhythmbullet/desktop/audio/visualizer/DesktopVisualizer.java b/desktop/src/zero1hd/rhythmbullet/desktop/audio/visualizer/DesktopVisualizer.java index 0ca763b..2710642 100755 --- a/desktop/src/zero1hd/rhythmbullet/desktop/audio/visualizer/DesktopVisualizer.java +++ b/desktop/src/zero1hd/rhythmbullet/desktop/audio/visualizer/DesktopVisualizer.java @@ -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; }