-
Notifications
You must be signed in to change notification settings - Fork 4
/
sndfile_linux.pxi
27 lines (26 loc) · 1.18 KB
/
sndfile_linux.pxi
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
cdef extern from "pysndfile.hh":
cdef cppclass SndfileHandle :
SndfileHandle(const char *path, int mode, int format, int channels, int samplerate)
SndfileHandle(const int fh, int close_desc, int mode, int format, int channels, int samplerate)
sf_count_t frames()
int format()
int channels()
int samplerate()
int seekable()
int error()
char* strError()
int command (int cmd, void *data, int datasize)
int get_cue_count()
sf_count_t seek (sf_count_t frames, int whence)
void writeSync ()
sf_count_t readf (short *ptr, sf_count_t items)
sf_count_t readf (int *ptr, sf_count_t items)
sf_count_t readf (float *ptr, sf_count_t items)
sf_count_t readf (double *ptr, sf_count_t items)
sf_count_t writef (const short *ptr, sf_count_t items)
sf_count_t writef (const int *ptr, sf_count_t items)
sf_count_t writef (const float *ptr, sf_count_t items)
sf_count_t writef (const double *ptr, sf_count_t items)
SNDFILE* rawHandle()
int setString (int str_type, const char* str)
const char* getString (int str_type)