X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fdebug.c;h=50cbaf3872f2e10868a834640446bab49edcdd47;hb=6311a3baf533d4a034e51dfe38e8cb213a1bf442;hp=d4fb575a96a18073a5b83a238a55959ae0b94eba;hpb=075672bf9f028490174bd3fbebe957a47a10b09d;p=picodrive.git diff --git a/pico/debug.c b/pico/debug.c index d4fb575..50cbaf3 100644 --- a/pico/debug.c +++ b/pico/debug.c @@ -387,14 +387,14 @@ void PDebugZ80Frame(void) if (/*Pico.m.z80Run &&*/ !Pico.m.z80_reset && (PicoIn.opt&POPT_EN_Z80)) PicoSyncZ80(Pico.t.m68c_cnt + line_sample * 488); - if (PsndOut) + if (PicoIn.sndOut) PsndGetSamples(line_sample); if (/*Pico.m.z80Run &&*/ !Pico.m.z80_reset && (PicoIn.opt&POPT_EN_Z80)) { PicoSyncZ80(Pico.t.m68c_cnt + 224 * 488); z80_int(); } - if (PsndOut) + if (PicoIn.sndOut) PsndGetSamples(224); // sync z80 @@ -402,7 +402,7 @@ void PDebugZ80Frame(void) Pico.t.m68c_cnt += Pico.m.pal ? 151809 : 127671; // cycles adjusted for converter PicoSyncZ80(Pico.t.m68c_cnt); } - if (PsndOut && ym2612.dacen && PsndDacLine < lines) + if (PicoIn.sndOut && ym2612.dacen && Pico.snd.dac_line < lines) PsndDoDAC(lines - 1); PsndDoPSG(lines - 1);