notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
uncommited code for 151 release (PSP suspend, file browser, etc)
[libpicofe.git]
/
psp
/
mp3.c
diff --git
a/psp/mp3.c
b/psp/mp3.c
index
43b449d
..
19f6ec3
100644
(file)
--- a/
psp/mp3.c
+++ b/
psp/mp3.c
@@
-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);