This commit is contained in:
Roman Lut 2024-04-27 20:26:11 +02:00 committed by GitHub
commit 5fad541bb1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -199,8 +199,8 @@ bool AudioGeneratorMP3::GetOneSample(int16_t sample[2])
break; // Do nothing
}
// for IGNORE and CONTINUE, just play what we have now
sample[AudioOutput::LEFTCHANNEL ] = synth->pcm.samples[0][samplePtr];
sample[AudioOutput::RIGHTCHANNEL] = synth->pcm.samples[1][samplePtr];
sample[AudioOutput::LEFTCHANNEL ] = lastSample[0];
sample[AudioOutput::RIGHTCHANNEL] = lastSample[1];
samplePtr++;
}
return true;