Skip to content
This repository was archived by the owner on Jan 6, 2023. It is now read-only.

Commit d18b70e

Browse files
committed
Fixing decodeFullyInto() so that it doesn't just decode one frame (4608 bytes)
1 parent d1e4c6c commit d18b70e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/main/java/fr/delthas/javamp3/Sound.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ public int decodeFullyInto(OutputStream os) throws IOException {
225225
os.write(soundData.samplesBuffer, index, remaining);
226226
}
227227
int read = remaining;
228-
while(!Decoder.decodeFrame(soundData)) {
228+
while(Decoder.decodeFrame(soundData)) {
229229
os.write(soundData.samplesBuffer);
230230
read += soundData.samplesBuffer.length;
231231
}

0 commit comments

Comments
 (0)