uncommited code for 151 release (PSP suspend, file browser, etc)

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@554 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
notaz 2008-07-18 13:04:38 +00:00
parent f0f0d2df76
commit 2b02d6e533
9 changed files with 79 additions and 58 deletions

View file

@ -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);