Browse Source

Fix mp3 file seek when seeking to previously unplayed location.

tags/2021-05-28
Lukasz Kozakiewicz GitHub 5 years ago
parent
commit
cfce337d81
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      modules/juce_audio_formats/codecs/juce_MP3AudioFormat.cpp

+ 2
- 1
modules/juce_audio_formats/codecs/juce_MP3AudioFormat.cpp View File

@@ -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…
Cancel
Save