X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=platform%2Fpsp%2Fmp3.c;h=c1e608939e22ba7e8e1eb5817114429c693705ed;hb=cc41eb4fa36c1ebe724efd4c81962cbc9046ac57;hp=43b449d720312a502e8b37a5ebf94aee33bac46e;hpb=602133e1c66666f9152b1edb3014e137a9768cad;p=picodrive.git diff --git a/platform/psp/mp3.c b/platform/psp/mp3.c index 43b449d..c1e6089 100644 --- a/platform/psp/mp3.c +++ b/platform/psp/mp3.c @@ -11,8 +11,8 @@ #include #include -#include "../../Pico/PicoInt.h" -#include "../../Pico/sound/mix.h" +#include "../../pico/pico_int.h" +#include "../../pico/sound/mix.h" #include "../common/lprintf.h" int mp3_last_error = 0; @@ -373,6 +373,9 @@ void mp3_start_play(FILE *f, int pos) mp3_fname = fname; } + // clear decoder state + sceAudiocodecInit(mp3_codec_struct, 0x1002); + // seek.. mp3_src_pos = (int) (((float)pos / 1023.0f) * (float)mp3_src_size); sceIoLseek32(mp3_handle, mp3_src_pos, PSP_SEEK_SET);