X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=Pico%2FPico.c;h=71add131e6e7e99611bbceb8a85664169cc342bb;hb=03a265e5ebabff7adbb4f97387f81e9b0428dbee;hp=93d6876460f887e3fa5624e724b9fdd7889865eb;hpb=7c9e6899a2c3fd0dfeafa1c6cda1593741d635d4;p=picodrive.git diff --git a/Pico/Pico.c b/Pico/Pico.c index 93d6876..71add13 100644 --- a/Pico/Pico.c +++ b/Pico/Pico.c @@ -255,6 +255,11 @@ static int CheckIdle(void) // to be called on 224 or line_sample scanlines only static __inline void getSamples(int y) { +#if SIMPLE_WRITE_SOUND + PsndRender(0, PsndLen); + if (PicoWriteSound) PicoWriteSound(PsndLen); + PsndClear(); +#else static int curr_pos = 0; if(y == 224) { @@ -271,6 +276,7 @@ static __inline void getSamples(int y) emustatus&=~1; curr_pos = PsndRender(0, PsndLen/2); } +#endif }