sound, fix buffer overrun

This commit is contained in:
kub 2021-11-06 21:01:46 +01:00
parent 1ce2b0923c
commit 1510eeafd4

View file

@ -17,7 +17,8 @@
void (*PsndMix_32_to_16l)(short *dest, int *src, int count) = mix_32_to_16l_stereo; void (*PsndMix_32_to_16l)(short *dest, int *src, int count) = mix_32_to_16l_stereo;
// master int buffer to mix to // 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 // cdda output buffer
s16 cdda_out_buffer[2*1152]; s16 cdda_out_buffer[2*1152];