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;
|
long pointer = (long) (getPositionInSeconds()*(long)sampleRate)-readWindowSize;
|
||||||
raf.seek(pointer);
|
raf.seek(pointer);
|
||||||
readWindowIndex = (int) (pointer/readWindowSize);
|
readWindowIndex = (int) (pointer/readWindowSize);
|
||||||
|
currentByteSet = null;
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void playbackIndexUpdate() {
|
public void playbackIndexUpdate() {
|
||||||
playbackIndex = (int) (playbackMusic.getPosition() * sampleRate / readWindowSize);
|
playbackIndex = (int) (playbackMusic.getPosition() * sampleRate / readWindowSize);
|
||||||
|
Loading…
Reference in New Issue
Block a user