mirror of
https://github.com/RaySollium99/picodrive.git
synced 2025-09-05 15:27:46 -04:00
loading msgs, bugfixes
git-svn-id: file:///home/notaz/opt/svn/PicoDrive@69 be3aeb3a-fb24-0410-a615-afba39da0efa
This commit is contained in:
parent
7336a99a49
commit
66fdc0f0d5
13 changed files with 93 additions and 49 deletions
|
@ -563,6 +563,12 @@ void mp3_start_play(FILE *f, int pos) // pos is 0-1023
|
|||
if (loaded_mp3 != f)
|
||||
{
|
||||
// printf("loading mp3... "); fflush(stdout);
|
||||
if (PicoMessage != NULL)
|
||||
{
|
||||
fseek(f, 0, SEEK_END);
|
||||
if (ftell(f) > 2*1024*1024)
|
||||
PicoMessage("Loading MP3...");
|
||||
}
|
||||
fseek(f, 0, SEEK_SET);
|
||||
fread(mp3_mem, 1, MP3_SIZE_MAX, f);
|
||||
// if (feof(f)) printf("done.\n");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue