X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fpico.c;h=e079f8aff939be5f8957a9d1fa03c525b4d2441a;hb=963b7f4f2ae12edbcd75e96b4c2dc4c80716c017;hp=08ba5106640dda2cd99486c3a9f547fb68e2dba9;hpb=1cfc5cc4ce06642b9bc45ca3b9d32793718e9455;p=picodrive.git diff --git a/pico/pico.c b/pico/pico.c index 08ba510..e079f8a 100644 --- a/pico/pico.c +++ b/pico/pico.c @@ -258,35 +258,6 @@ static __inline void SekRunM68k(int cyc) #endif } - -// to be called on 224 or line_sample scanlines only -static __inline void getSamples(int y) -{ -#if SIMPLE_WRITE_SOUND - if (y != 224) return; - PsndRender(0, PsndLen); - if (PicoWriteSound) PicoWriteSound(PsndLen); - PsndClear(); -#else - static int curr_pos = 0; - - if(y == 224) { - if(emustatus & 2) - curr_pos += PsndRender(curr_pos, PsndLen-PsndLen/2); - else curr_pos = PsndRender(0, PsndLen); - if (emustatus&1) emustatus|=2; else emustatus&=~2; - if (PicoWriteSound) PicoWriteSound(curr_pos); - // clear sound buffer - PsndClear(); - } - else if(emustatus & 3) { - emustatus|= 2; - emustatus&=~1; - curr_pos = PsndRender(0, PsndLen/2); - } -#endif -} - #include "pico_cmn.c" int z80stopCycle;