X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fsound%2Fsound.c;h=1f23e1aaebee33b1bd5fc69f053bed78f7bdd5fe;hb=9b5713af95da3f72cb659d4d8017559aca593a31;hp=f3cd2217b51b1dd866f9be3ed62dd8f72ea89483;hpb=70b8542adb8568711a0627acfb53b590080c08ac;p=picodrive.git diff --git a/pico/sound/sound.c b/pico/sound/sound.c index f3cd221..1f23e1a 100644 --- 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; int line_from = PsndDacLine; + if (line_to >= 312) + line_to = 311; + PsndDacLine = line_to + 1; pos =dac_info[line_from]>>4;