mirror of https://github.com/mgba-emu/mgba.git
SDL: Fix blip audio buffer repeat while paused
This commit is contained in:
parent
c141063101
commit
eeb7060bda
|
@ -97,7 +97,7 @@ static void _GBASDLAudioCallback(void* context, Uint8* data, int len) {
|
|||
}
|
||||
GBASyncConsumeAudio(&audioContext->thread->sync);
|
||||
if (available < len) {
|
||||
memset(((short*) data) + audioContext->obtainedSpec.channels * available, 0, len - available);
|
||||
memset(((short*) data) + audioContext->obtainedSpec.channels * available, 0, (len - available) * audioContext->obtainedSpec.channels * sizeof(short));
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue