-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcue.h
33 lines (25 loc) · 1.19 KB
/
cue.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#ifndef CLOWNCD_CUE_H
#define CLOWNCD_CUE_H
#include <stddef.h>
#include "clowncommon/clowncommon.h"
#include "file-io.h"
typedef enum ClownCD_CueFileType
{
CLOWNCD_CUE_FILE_INVALID,
CLOWNCD_CUE_FILE_BINARY,
CLOWNCD_CUE_FILE_WAVE,
CLOWNCD_CUE_FILE_MP3
} ClownCD_CueFileType;
typedef enum ClownCD_CueTrackType
{
CLOWNCD_CUE_TRACK_INVALID,
CLOWNCD_CUE_TRACK_MODE1_2048,
CLOWNCD_CUE_TRACK_MODE1_2352,
CLOWNCD_CUE_TRACK_AUDIO
} ClownCD_CueTrackType;
typedef void (*ClownCD_CueCallback)(void *user_data, const char *filename, ClownCD_CueFileType file_type, unsigned int track, ClownCD_CueTrackType track_type, unsigned int index, unsigned long sector);
cc_bool ClownCD_CueParse(ClownCD_File *file, ClownCD_CueCallback callback, const void *user_data);
cc_bool ClownCD_CueGetTrackIndexInfo(ClownCD_File *file, unsigned int track, unsigned int index, ClownCD_CueCallback callback, const void *user_data);
unsigned long ClownCD_CueGetTrackIndexEndingSector(ClownCD_File *file, const char *track_index_filename, unsigned int track, unsigned int index, unsigned long starting_sector);
#define ClownCD_CueIsValid(file) ClownCD_CueParse(file, NULL, NULL)
#endif /* CLOWNCD_CUE_H */