more progress
This commit is contained in:
parent
fa93634b9e
commit
95c49602ca
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user