X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fsound%2Fsound.c;h=5bb8e9d89fc216358958c98572e5ce1dae3db880;hb=cf82669f5072028f623a4b92516c74947040e563;hp=dfa1d651b17e44f7b3d2403ddb44e4f7a94f70bd;hpb=b8a1c09ad1ef0b807c2eb1632d34e6bfae14b633;p=picodrive.git diff --git a/pico/sound/sound.c b/pico/sound/sound.c index dfa1d65..5bb8e9d 100644 --- a/pico/sound/sound.c +++ b/pico/sound/sound.c @@ -308,6 +308,8 @@ static int PsndRender(int offset, int length) (Pico_mcd->pcm.control & 0x80) && Pico_mcd->pcm.enabled; offset <<= stereo; + pprof_start(sound); + #if !SIMPLE_WRITE_SOUND if (offset == 0) { // should happen once per frame // compensate for float part of PsndLen @@ -362,6 +364,8 @@ static int PsndRender(int offset, int length) // convert + limit to normal 16bit output PsndMix_32_to_16l(PsndOut+offset, buf32, length); + pprof_end(sound); + return length; }