mirror of
https://github.com/RaySollium99/libpicofe.git
synced 2025-09-05 06:47:45 -04:00
PSP sustend/resume and stuff
git-svn-id: file:///home/notaz/opt/svn/PicoDrive/platform@306 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
f060b8b912
commit
677b5dd814
9 changed files with 98 additions and 5 deletions
14
psp/mp3.c
14
psp/mp3.c
|
@ -473,3 +473,17 @@ int mp3_get_offset(void) // 0-1023
|
|||
}
|
||||
|
||||
|
||||
void mp3_reopen_file(void)
|
||||
{
|
||||
if (mp3_fname == NULL) return;
|
||||
lprintf("mp3_reopen_file(%s)\n", mp3_fname);
|
||||
|
||||
// try closing, just in case
|
||||
if (mp3_handle >= 0) sceIoClose(mp3_handle);
|
||||
|
||||
mp3_handle = sceIoOpen(mp3_fname, PSP_O_RDONLY, 0777);
|
||||
if (mp3_handle >= 0)
|
||||
sceIoLseek32(mp3_handle, mp3_src_pos, PSP_SEEK_SET);
|
||||
lprintf("mp3_reopen_file %s\n", mp3_handle >= 0 ? "ok" : "failed");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue