libsndfile Libsndfile is a library designed to allow the reading and writing of many different sampled sound file formats (such as MS Windows WAV and the Apple/SGI AIFF format) through one standard library interface. SYNOPSIS The functions of linbsndfile are defined as follows: #include <stdio.h> #include <sndfile.h> SNDFILE* sf_open_read (const char *path, SF_INFO *sfinfo) ; SNDFILE* sf_open_write (const char *path, const SF_INFO *sfinfo) ; int sf_format_check (const SF_INFO *info) ; off_t sf_seek (SNDFILE *sndfile, off_t frames, int whence) ; int sf_command (SNDFILE *sndfile, const char *cmd, void *data, int datasize) ; double sf_signal_max (SNDFILE *sndfile) ; int sf_perror (SNDFILE *sndfile) ; int sf_error_str (SNDFILE *sndfile, char* str, size_t len) ; int sf_close (SNDFILE *sndfile) ; size_t sf_read_short (SNDFILE *sndfile, short *ptr, size_t items) ; size_t sf_read_int (SNDFILE *sndfile, int *ptr, size_t items) ; size_t sf_read_float (SNDFILE *sndfile, float *ptr, size_t items) ; size_t sf_read_double (SNDFILE *sndfile, double *ptr, size_t items, int normalize) ; size_t sf_readf_short (SNDFILE *sndfile, short *ptr, size_t frames) ; size_t sf_readf_int (SNDFILE *sndfile, int *ptr, size_t frames) ; size_t sf_readf_float (SNDFILE *sndfile, float *ptr, size_t frames) ; size_t sf_readf_double (SNDFILE *sndfile, double *ptr, size_t frames, int normalize) ; size_t sf_write_short (SNDFILE *sndfile, short *ptr, size_t items) ; size_t sf_write_int (SNDFILE *sndfile, int *ptr, size_t items) ; size_t sf_write_float (SNDFILE *sndfile, float *ptr, size_t items) ; size_t sf_write_double (SNDFILE *sndfile, double *ptr, size_t items, int normalize) ; size_t sf_writef_short (SNDFILE *sndfile, short *ptr, size_t frames) ; size_t sf_writef_int (SNDFILE *sndfile, int *ptr, size_t frames) ; size_t sf_writef_float (SNDFILE *sndfile, float *ptr, size_t frames) ; size_t sf_writef_double (SNDFILE *sndfile, double *ptr, size_t frames, int normalize) ; size_t sf_read_raw (SNDFILE *sndfile, void *ptr, size_t bytes) ; size_t sf_write_raw (SNDFILE *sndfile, void *ptr, size_t bytes) ; SNDFILE* is an anonymous pointer to data which is private to the library. |