mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Fix mp3 file seek when seeking to previously unplayed location.
This commit is contained in:
parent
fcd12ab12b
commit
cfce337d81
1 changed files with 2 additions and 1 deletions
|
|
@ -1562,7 +1562,8 @@ struct MP3Stream
|
|||
}
|
||||
|
||||
frameIndex = jmin (frameIndex & ~(storedStartPosInterval - 1),
|
||||
frameStreamPositions.size() * storedStartPosInterval - 1);
|
||||
(frameStreamPositions.size() - 1) * storedStartPosInterval);
|
||||
|
||||
stream.setPosition (frameStreamPositions.getUnchecked (frameIndex / storedStartPosInterval));
|
||||
currentFrameIndex = frameIndex;
|
||||
reset();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue