-
Notifications
You must be signed in to change notification settings - Fork 0
/
Libcue.xs
118 lines (92 loc) · 1.7 KB
/
Libcue.xs
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
#define PERL_NO_GET_CONTEXT
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#include <libcue/libcue.h>
MODULE = Audio::Cuefile::Libcue PACKAGE = Audio::Cuefile::Libcue
PROTOTYPES: DISABLE
# constructors
struct Cd *
cue_parse_file(fp)
FILE * fp
struct Cd *
cue_parse_string(string)
const char * string
# destructor
void
DESTROY(cd)
struct Cd * cd
CODE:
cd_delete(cd);
# CD functions
enum DiscMode
cd_get_mode(cd)
struct Cd * cd
const char *
cd_get_cdtextfile(cd)
struct Cd * cd
# return number of tracks in cd
int
cd_get_ntrack(cd)
struct Cd * cd
# CDTEXT functions
struct Cdtext *
cd_get_cdtext(cd)
struct Cd * cd
struct Cdtext *
track_get_cdtext(track)
struct Track * track
const char *
cdtext_get(pti, cdtext)
enum Pti pti
struct Cdtext * cdtext
# REM functions
struct Rem *
cd_get_rem(cd)
struct Cd * cd
struct Rem *
track_get_rem(track)
struct Track * track
# return pointer to value for rem comment
# @param unsigned int: enum of rem comment
const char *
rem_get(cmt, rem)
enum RemType cmt
struct Rem * rem
# Track functions
struct Track *
cd_get_track(cd, i)
struct Cd * cd
int i
const char *
track_get_filename(track)
struct Track * track
long
track_get_start(track)
struct Track * track
long
track_get_length(track)
struct Track * track
enum TrackMode
track_get_mode(track)
struct Track * track
enum TrackSubMode
track_get_sub_mode(track)
struct Track * track
int
track_is_set_flag(track, flag)
struct Track * track
enum TrackFlag flag
long
track_get_zero_pre(track)
struct Track * track
long
track_get_zero_post(track)
struct Track * track
const char *
track_get_isrc(track)
struct Track * track
long
track_get_index(track, i)
struct Track * track
int i