From: kub Date: Sat, 6 Nov 2021 20:01:46 +0000 (+0100) Subject: sound, fix buffer overrun X-Git-Tag: v2.00~431 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1510eeafd47c51cc8958622cff0b62c58bcd2502;p=picodrive.git sound, fix buffer overrun --- diff --git a/pico/sound/sound.c b/pico/sound/sound.c index 56bbadc9..17ac7520 100644 --- a/pico/sound/sound.c +++ b/pico/sound/sound.c @@ -17,7 +17,8 @@ void (*PsndMix_32_to_16l)(short *dest, int *src, int count) = mix_32_to_16l_stereo; // master int buffer to mix to -static s32 PsndBuffer[2*(44100+100)/50]; +// +1 for a fill triggered by an instruction overhanging into the next scanline +static s32 PsndBuffer[2*(44100+100)/50+2]; // cdda output buffer s16 cdda_out_buffer[2*1152];