Skip to content

Commit 46b3657

Browse files
authored
fix: Invalid data is assigned to the right channel when playing a mono MP3. (#559)
1 parent f95f15f commit 46b3657

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/AudioGeneratorMP3.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -248,6 +248,10 @@ bool AudioGeneratorMP3::loop()
248248
running = false;
249249
goto done;
250250
}
251+
if (lastChannels == 1)
252+
{
253+
lastSample[1] = lastSample[0];
254+
}
251255
} while (running && output->ConsumeSample(lastSample));
252256

253257
done:

0 commit comments

Comments
 (0)