cleaned up, visualizer will use reflection to obtain output [planned, not implemented]
This commit is contained in:
parent
f292d6f81c
commit
aa4a0f3166
@ -86,5 +86,4 @@ public interface MusicManager extends Disposable {
|
|||||||
* @return the amount of windows that have been read.
|
* @return the amount of windows that have been read.
|
||||||
*/
|
*/
|
||||||
public int framesRead();
|
public int framesRead();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -52,6 +52,7 @@ public class Mp3Manager implements MusicManager {
|
|||||||
private ExecutorService exec;
|
private ExecutorService exec;
|
||||||
|
|
||||||
private String basicSongName;
|
private String basicSongName;
|
||||||
|
|
||||||
public Mp3Manager(FileHandle audioFile) {
|
public Mp3Manager(FileHandle audioFile) {
|
||||||
this.file = audioFile;
|
this.file = audioFile;
|
||||||
lock = new ReentrantLock();
|
lock = new ReentrantLock();
|
||||||
@ -162,10 +163,8 @@ public class Mp3Manager implements MusicManager {
|
|||||||
} catch (ArrayIndexOutOfBoundsException | DecoderException e) {
|
} catch (ArrayIndexOutOfBoundsException | DecoderException e) {
|
||||||
System.out.println(e);
|
System.out.println(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
bitstream.closeFrame();
|
bitstream.closeFrame();
|
||||||
bytesRead = sampleBuffer.reset();
|
bytesRead = sampleBuffer.reset();
|
||||||
|
|
||||||
currentByteSet = sampleBuffer.getBuffer();
|
currentByteSet = sampleBuffer.getBuffer();
|
||||||
} else {
|
} else {
|
||||||
currentByteSet = null;
|
currentByteSet = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user