X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=Pico%2Fsound%2Fsound.c;h=1d6c168941edaf038f0170c07f48f4182435ef1c;hb=7a87643e0702bf156527e066c2a963b6db2b4fa5;hp=4c13a2ff1ac37d3670372473a2921b7822bd097e;hpb=0bccafebb68ef11f32a7a83f20fca886299aa78b;p=picodrive.git diff --git a/Pico/sound/sound.c b/Pico/sound/sound.c index 4c13a2f..1d6c168 100644 --- a/Pico/sound/sound.c +++ b/Pico/sound/sound.c @@ -158,6 +158,9 @@ void PsndRerate(int preserve_state) // set mixer PsndMix_32_to_16l = (PicoOpt & POPT_EN_STEREO) ? mix_32_to_16l_stereo : mix_32_to_16_mono; + + if (PicoAHW & PAHW_PICO) + PicoReratePico(); } @@ -326,6 +329,11 @@ PICO_INTERNAL int PsndRender(int offset, int length) if (PicoOpt & POPT_EN_PSG) SN76496Update(PsndOut+offset, length, stereo); + if (PicoAHW & PAHW_PICO) { + PicoPicoPCMUpdate(PsndOut+offset, length, stereo); + return length; + } + // Add in the stereo FM buffer if (PicoOpt & POPT_EN_FM) { buf32_updated = YM2612UpdateOne(buf32, length, stereo, 1);