notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
bugfix in bram code
[picodrive.git]
/
Pico
/
sound
/
sound.c
diff --git
a/Pico/sound/sound.c
b/Pico/sound/sound.c
index
28e6dc4
..
cc36a44
100644
(file)
--- a/
Pico/sound/sound.c
+++ b/
Pico/sound/sound.c
@@
-248,8
+248,10
@@
int sound_render(int offset, int length)
SN76496Update(PsndOut+offset, length, stereo);
\r
\r
// Add in the stereo FM buffer
\r
SN76496Update(PsndOut+offset, length, stereo);
\r
\r
// Add in the stereo FM buffer
\r
- if (PicoOpt & 1)
\r
+ if (PicoOpt & 1)
{
\r
buf32_updated = YM2612UpdateOne(buf32, length, stereo, 1);
\r
buf32_updated = YM2612UpdateOne(buf32, length, stereo, 1);
\r
+ } else
\r
+ memset32(buf32, 0, length<<stereo);
\r
\r
//printf("active_chs: %02x\n", buf32_updated);
\r
\r
\r
//printf("active_chs: %02x\n", buf32_updated);
\r
\r