frontend: eliminate osd_text dupes
[picodrive.git] / pico / cd / cue.h
1
2 typedef enum
3 {
4         CT_UNKNOWN = 0,
5         CT_ISO = 1,     /* 2048 B/sector */
6         CT_BIN = 2,     /* 2352 B/sector */
7         CT_MP3 = 3,
8         CT_WAV = 4
9 } cue_track_type;
10
11 typedef struct
12 {
13         char *fname;
14         int pregap;             /* pregap for current track */
15         int sector_offset;      /* in current file */
16         int sector_xlength;
17         cue_track_type type;
18 } cue_track;
19
20 typedef struct
21 {
22         int track_count;
23         cue_track tracks[0];
24 } cue_data_t;
25
26
27 cue_data_t *cue_parse(const char *fname);
28 void        cue_destroy(cue_data_t *data);
29