X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fsound%2Fsound.c;h=ede33f11fd8cc92915f37e5c12e40044d0b6d710;hb=add51c49ecdda53f59bd4c01d4b2e03817002a71;hp=f3cd2217b51b1dd866f9be3ed62dd8f72ea89483;hpb=cff531af94bd9c9c89ae162e80f48ddc26a4e504;p=picodrive.git diff --git a/pico/sound/sound.c b/pico/sound/sound.c index f3cd221..ede33f1 100644 --- a/pico/sound/sound.c +++ b/pico/sound/sound.c @@ -14,6 +14,8 @@ #include "../cd/pcm.h" #include "mix.h" +#define SIMPLE_WRITE_SOUND 0 + void (*PsndMix_32_to_16l)(short *dest, int *src, int count) = mix_32_to_16l_stereo; // master int buffer to mix to @@ -181,6 +183,9 @@ PICO_INTERNAL void PsndDoDAC(int line_to) int dout = ym2612.dacout; int line_from = PsndDacLine; + if (line_to >= 312) + line_to = 311; + PsndDacLine = line_to + 1; pos =dac_info[line_from]>>4;