81 int format = 0,
int channels = 0,
int samplerate = 0) ;
83 int format = 0,
int channels = 0,
int samplerate = 0) ;
85 int format = 0,
int channels = 0,
int samplerate = 0) ;
94 int refCount (
void)
const {
return (p == NULL) ? 0 : p->
ref ; }
96 operator bool ()
const {
return (p != NULL) ; }
108 int command (
int cmd,
void *data,
int datasize) ;
110 sf_count_t
seek (sf_count_t frames,
int whence) ;
118 static int formatCheck (
int format,
int channels,
int samplerate) ;
120 sf_count_t
read (
short *ptr, sf_count_t items) ;
121 sf_count_t
read (
int *ptr, sf_count_t items) ;
122 sf_count_t
read (
float *ptr, sf_count_t items) ;
123 sf_count_t
read (
double *ptr, sf_count_t items) ;
125 sf_count_t
write (
const short *ptr, sf_count_t items) ;
126 sf_count_t
write (
const int *ptr, sf_count_t items) ;
127 sf_count_t
write (
const float *ptr, sf_count_t items) ;
128 sf_count_t
write (
const double *ptr, sf_count_t items) ;
130 sf_count_t
readf (
short *ptr, sf_count_t frames) ;
131 sf_count_t
readf (
int *ptr, sf_count_t frames) ;
132 sf_count_t
readf (
float *ptr, sf_count_t frames) ;
133 sf_count_t
readf (
double *ptr, sf_count_t frames) ;
135 sf_count_t
writef (
const short *ptr, sf_count_t frames) ;
136 sf_count_t
writef (
const int *ptr, sf_count_t frames) ;
137 sf_count_t
writef (
const float *ptr, sf_count_t frames) ;
138 sf_count_t
writef (
const double *ptr, sf_count_t frames) ;
#define LIBAUDIOGRAPHER_API
sf_count_t frames(void) const
int command(int cmd, void *data, int datasize)
sf_count_t seek(sf_count_t frames, int whence)
sf_count_t writef(const short *ptr, sf_count_t frames)
sf_count_t writeRaw(const void *ptr, sf_count_t bytes)
sf_count_t read(short *ptr, sf_count_t items)
sf_count_t write(const int *ptr, sf_count_t items)
int samplerate(void) const
SndfileHandle(int fd, bool close_desc, int mode=SFM_READ, int format=0, int channels=0, int samplerate=0)
sf_count_t write(const float *ptr, sf_count_t items)
const char * getString(int str_type) const
sf_count_t readf(int *ptr, sf_count_t frames)
const char * strError(void) const
int setString(int str_type, const char *str)
SndfileHandle(std::string const &path, int mode=SFM_READ, int format=0, int channels=0, int samplerate=0)
sf_count_t readf(float *ptr, sf_count_t frames)
static int formatCheck(int format, int channels, int samplerate)
sf_count_t read(float *ptr, sf_count_t items)
sf_count_t readf(short *ptr, sf_count_t frames)
sf_count_t write(const double *ptr, sf_count_t items)
sf_count_t readf(double *ptr, sf_count_t frames)
sf_count_t writef(const double *ptr, sf_count_t frames)
sf_count_t write(const short *ptr, sf_count_t items)
SndfileHandle(const char *path, int mode=SFM_READ, int format=0, int channels=0, int samplerate=0)
sf_count_t writef(const float *ptr, sf_count_t frames)
sf_count_t read(double *ptr, sf_count_t items)
sf_count_t readRaw(void *ptr, sf_count_t bytes)
sf_count_t read(int *ptr, sf_count_t items)
SndfileHandle(const SndfileHandle &orig)
sf_count_t writef(const int *ptr, sf_count_t frames)
bool operator==(const ProcessorSelection &a, const ProcessorSelection &b)