shared_ctl->mp3_len = ftell(f);\r
loaded_mp3 = f;\r
\r
- if (PicoOpt&0x200) {\r
+ if (PicoOpt & POPT_EXT_FM) {\r
// as we are going to change 940's cacheable area, we must invalidate it's cache..\r
if (CHECK_BUSY(JOB940_MP3DECODE)) wait_busy_940(JOB940_MP3DECODE);\r
add_job_940(JOB940_INVALIDATE_DCACHE);\r
byte_offs *= pos;\r
byte_offs >>= 6;\r
}\r
- // printf("mp3 pos1024: %i, byte_offs %i/%i\n", pos, byte_offs, shared_ctl->mp3_len);\r
+ printf(" mp3 pos1024: %i, byte_offs %i/%i\n", pos, byte_offs, shared_ctl->mp3_len);\r
\r
shared_ctl->mp3_offs = byte_offs;\r
\r
mp3_job_started = 0;\r
shared_ctl->mp3_buffsel = 1; // will change to 0 on first decode\r
\r
- if (!(PicoOpt&0x200)) mp3_start_local();\r
+ if (PicoOpt & POPT_EXT_FM)\r
+ {\r
+ add_job_940(JOB940_MP3RESET);\r
+ if (CHECK_BUSY(JOB940_MP3RESET)) wait_busy_940(JOB940_MP3RESET);\r
+ }\r
+ else\r
+ mp3_start_local();\r
}\r
\r
\r