EMI: Fix pop at the end of SCX playback.

This commit is contained in:
Joni Vähämäki 2014-07-29 14:10:20 +03:00
parent 5e8d3dad0c
commit 685803cc83

View File

@ -161,7 +161,7 @@ int SCXStream::readBuffer(int16 *buffer, const int numSamples) {
// Now re-interleave the data
int samplesDecoded = 0;
int16 *leftSrc = leftSamples, *rightSrc = rightSamples;
for (; samplesDecoded < numSamples; samplesDecoded += 2) {
for (; samplesDecoded < samplesDecodedLeft * 2; samplesDecoded += 2) {
*buffer++ = *leftSrc++;
*buffer++ = *rightSrc++;
}