From aa4a0f31664708f88797ff0357abf21f4b6c3598 Mon Sep 17 00:00:00 2001 From: Recrown Date: Thu, 4 Jan 2018 23:46:26 -0600 Subject: [PATCH] cleaned up, visualizer will use reflection to obtain output [planned, not implemented] --- core/src/zero1hd/rhythmbullet/util/MusicManager.java | 1 - desktop/src/zero1hd/rhythmbullet/desktop/audio/Mp3Manager.java | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/core/src/zero1hd/rhythmbullet/util/MusicManager.java b/core/src/zero1hd/rhythmbullet/util/MusicManager.java index fae1438..12f6434 100755 --- a/core/src/zero1hd/rhythmbullet/util/MusicManager.java +++ b/core/src/zero1hd/rhythmbullet/util/MusicManager.java @@ -86,5 +86,4 @@ public interface MusicManager extends Disposable { * @return the amount of windows that have been read. */ public int framesRead(); - } diff --git a/desktop/src/zero1hd/rhythmbullet/desktop/audio/Mp3Manager.java b/desktop/src/zero1hd/rhythmbullet/desktop/audio/Mp3Manager.java index a90d668..f334471 100755 --- a/desktop/src/zero1hd/rhythmbullet/desktop/audio/Mp3Manager.java +++ b/desktop/src/zero1hd/rhythmbullet/desktop/audio/Mp3Manager.java @@ -52,6 +52,7 @@ public class Mp3Manager implements MusicManager { private ExecutorService exec; private String basicSongName; + public Mp3Manager(FileHandle audioFile) { this.file = audioFile; lock = new ReentrantLock(); @@ -162,10 +163,8 @@ public class Mp3Manager implements MusicManager { } catch (ArrayIndexOutOfBoundsException | DecoderException e) { System.out.println(e); } - bitstream.closeFrame(); bytesRead = sampleBuffer.reset(); - currentByteSet = sampleBuffer.getBuffer(); } else { currentByteSet = null;