b923ecbe |
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 */ |
0bccafeb |
16 | int sector_xlength; |
b923ecbe |
17 | cue_track_type type; |
18 | } cue_track; |
19 | |
20 | typedef struct |
21 | { |
22 | int track_count; |
23 | cue_track tracks[0]; |
9037e45d |
24 | } cue_data_t; |
b923ecbe |
25 | |
26 | |
9037e45d |
27 | cue_data_t *cue_parse(const char *fname); |
28 | void cue_destroy(cue_data_t *data); |
b923ecbe |
29 | |