From 1510eeafd47c51cc8958622cff0b62c58bcd2502 Mon Sep 17 00:00:00 2001 From: kub Date: Sat, 6 Nov 2021 21:01:46 +0100 Subject: [PATCH] sound, fix buffer overrun --- pico/sound/sound.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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]; -- 2.39.5