notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1ce2b09
)
sound, fix buffer overrun
author
kub
<derkub@gmail.com>
Sat, 6 Nov 2021 20:01:46 +0000
(21:01 +0100)
committer
kub
<derkub@gmail.com>
Sat, 6 Nov 2021 20:01:46 +0000
(21:01 +0100)
pico/sound/sound.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/sound/sound.c
b/pico/sound/sound.c
index
56bbadc
..
17ac752
100644
(file)
--- 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;
\r
\r
// master int buffer to mix to
\r
-static s32 PsndBuffer[2*(44100+100)/50];
\r
+// +1 for a fill triggered by an instruction overhanging into the next scanline
\r
+static s32 PsndBuffer[2*(44100+100)/50+2];
\r
\r
// cdda output buffer
\r
s16 cdda_out_buffer[2*1152];
\r