-
-PICO_INTERNAL int FILE_Play_CD_LBA(void)
-{
- int index = Pico_mcd->scd.Cur_Track - 1;
- Pico_mcd->m.audio_track = index;
-
- cdprintf("Play track #%i", Pico_mcd->scd.Cur_Track);
-
- if (Pico_mcd->TOC.Tracks[index].F == NULL)
- {
- return 1;
- }
-
- if (Pico_mcd->TOC.Tracks[index].ftype == TYPE_MP3)
- {
- int pos1024 = 0;
- int Track_LBA_Pos = Pico_mcd->scd.Cur_LBA - Track_to_LBA(Pico_mcd->scd.Cur_Track);
- if (Track_LBA_Pos < 0) Track_LBA_Pos = 0;
- if (Track_LBA_Pos)
- pos1024 = Track_LBA_Pos * 1024 / Pico_mcd->TOC.Tracks[index].Length;
-
- mp3_start_play(Pico_mcd->TOC.Tracks[index].F, pos1024);
- }
- else
- {
- return 3;
- }
-
- return 0;
-}
-