X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fsound%2Fsound.c;h=64e172a07c3710875ea213b5d603f40cc9ce39dd;hb=03a265e5ebabff7adbb4f97387f81e9b0428dbee;hp=fbb81c8902ed98a0cbbda0f4daff8c98f9e3fac3;hpb=4a32f01f5527929fe5feafd53937007dcfd64735;p=picodrive.git diff --git a/Pico/sound/sound.c b/Pico/sound/sound.c index fbb81c8..64e172a 100644 --- a/Pico/sound/sound.c +++ b/Pico/sound/sound.c @@ -232,6 +232,7 @@ PICO_INTERNAL int PsndRender(int offset, int length) int do_pcm = (PicoMCD&1) && (PicoOpt&0x400) && (Pico_mcd->pcm.control & 0x80) && Pico_mcd->pcm.enabled; offset <<= stereo; +#if !SIMPLE_WRITE_SOUND if (offset == 0) { // should happen once per frame // compensate for float part of PsndLen PsndLen_exc_cnt += PsndLen_exc_add; @@ -240,6 +241,7 @@ PICO_INTERNAL int PsndRender(int offset, int length) length++; } } +#endif // PSG if (PicoOpt & 2)