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:
70b8542
)
don't crash on bad timing
author
notaz
<notasas@gmail.com>
Wed, 3 Jul 2013 18:13:11 +0000
(21:13 +0300)
committer
notaz
<notasas@gmail.com>
Wed, 3 Jul 2013 18:13:11 +0000
(21:13 +0300)
pico/sound/sound.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/sound/sound.c
b/pico/sound/sound.c
index
f3cd221
..
1f23e1a
100644
(file)
--- a/
pico/sound/sound.c
+++ b/
pico/sound/sound.c
@@
-181,6
+181,9
@@
PICO_INTERNAL void PsndDoDAC(int line_to)
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