X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=pico%2Fsound%2Fsound.c;h=5bb8e9d89fc216358958c98572e5ce1dae3db880;hb=f6c49d38cbb965c502ca2af66d76e92f95acda7c;hp=dfa1d651b17e44f7b3d2403ddb44e4f7a94f70bd;hpb=e05b81fc5b3f640496795ced5d893ece4cc51c2d;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; }