notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
drc: some debug improvements
[picodrive.git]
/
pico
/
sound
/
sound.c
diff --git
a/pico/sound/sound.c
b/pico/sound/sound.c
index
f3cd221
..
ede33f1
100644
(file)
--- a/
pico/sound/sound.c
+++ b/
pico/sound/sound.c
@@
-14,6
+14,8
@@
#include "../cd/pcm.h"
\r
#include "mix.h"
\r
\r
#include "../cd/pcm.h"
\r
#include "mix.h"
\r
\r
+#define SIMPLE_WRITE_SOUND 0
\r
+
\r
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
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
@@
-181,6
+183,9
@@
PICO_INTERNAL void PsndDoDAC(int line_to)
int dout = ym2612.dacout;
\r
int line_from = PsndDacLine;
\r
\r
int dout = ym2612.dacout;
\r
int line_from = PsndDacLine;
\r
\r
+ if (line_to >= 312)
\r
+ line_to = 311;
\r
+
\r
PsndDacLine = line_to + 1;
\r
\r
pos =dac_info[line_from]>>4;
\r
PsndDacLine = line_to + 1;
\r
\r
pos =dac_info[line_from]>>4;
\r