notaz.gp2x.de
/
libpicofe.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
loading msgs, bugfixes
[libpicofe.git]
/
gp2x
/
940ctl.c
diff --git
a/gp2x/940ctl.c
b/gp2x/940ctl.c
index
5c53761
..
48ebfa0
100644
(file)
--- a/
gp2x/940ctl.c
+++ b/
gp2x/940ctl.c
@@
-563,6
+563,12
@@
void mp3_start_play(FILE *f, int pos) // pos is 0-1023
if (loaded_mp3 != f)
\r
{
\r
// printf("loading mp3... "); fflush(stdout);
\r
if (loaded_mp3 != f)
\r
{
\r
// printf("loading mp3... "); fflush(stdout);
\r
+ if (PicoMessage != NULL)
\r
+ {
\r
+ fseek(f, 0, SEEK_END);
\r
+ if (ftell(f) > 2*1024*1024)
\r
+ PicoMessage("Loading MP3...");
\r
+ }
\r
fseek(f, 0, SEEK_SET);
\r
fread(mp3_mem, 1, MP3_SIZE_MAX, f);
\r
// if (feof(f)) printf("done.\n");
\r
fseek(f, 0, SEEK_SET);
\r
fread(mp3_mem, 1, MP3_SIZE_MAX, f);
\r
// if (feof(f)) printf("done.\n");
\r