more progress

This commit is contained in:
Harrison Deng 2017-12-11 16:26:26 -06:00
parent fa93634b9e
commit 95c49602ca

View File

@ -105,10 +105,12 @@ public class Mp3Manager implements MusicManager {
long pointer = (long) (getPositionInSeconds()*(long)sampleRate)-readWindowSize;
raf.seek(pointer);
readWindowIndex = (int) (pointer/readWindowSize);
currentByteSet = null;
} catch (IOException e) {
e.printStackTrace();
}
}
@Override
public void playbackIndexUpdate() {
playbackIndex = (int) (playbackMusic.getPosition() * sampleRate / readWindowSize);