Lines Matching refs:SNDFILE

357 /* A SNDFILE* pointer can be passed around much like stdio.h's FILE* pointer. */
359 typedef struct sf_private_tag SNDFILE ;
590 ** return a NULL pointer. To find the error number, pass a NULL SNDFILE
595 SNDFILE* sf_open (const char *path, int mode, SF_INFO *sfinfo) ;
598 /* Use the existing file descriptor to create a SNDFILE object. If close_desc
605 ** NULL SNDFILE to sf_strerror ().
610 SNDFILE* sf_open_fd (int fd, int mode, SF_INFO *sfinfo, int close_desc) ;
612 SNDFILE* sf_open_virtual (SF_VIRTUAL_IO *sfvirtual, int mode, SF_INFO *sfinfo, void *user_data) ;
619 int sf_error (SNDFILE *sndfile) ;
623 ** the given SNDFILE.
626 const char* sf_strerror (SNDFILE *sndfile) ;
642 int sf_perror (SNDFILE *sndfile) ;
643 int sf_error_str (SNDFILE *sndfile, char* str, size_t len) ;
650 int sf_command (SNDFILE *sndfile, int command, void *data, int datasize) ;
658 /* Seek within the waveform data chunk of the SNDFILE. sf_seek () uses
676 sf_count_t sf_seek (SNDFILE *sndfile, sf_count_t frames, int whence) ;
687 int sf_set_string (SNDFILE *sndfile, int str_type, const char* str) ;
689 const char* sf_get_string (SNDFILE *sndfile, int str_type) ;
707 int sf_current_byterate (SNDFILE *sndfile) ;
712 sf_count_t sf_read_raw (SNDFILE *sndfile, void *ptr, sf_count_t bytes) ;
713 sf_count_t sf_write_raw (SNDFILE *sndfile, const void *ptr, sf_count_t bytes) ;
726 sf_count_t sf_readf_short (SNDFILE *sndfile, short *ptr, sf_count_t frames) ;
727 sf_count_t sf_writef_short (SNDFILE *sndfile, const short *ptr, sf_count_t frames) ;
729 sf_count_t sf_readf_int (SNDFILE *sndfile, int *ptr, sf_count_t frames) ;
730 sf_count_t sf_writef_int (SNDFILE *sndfile, const int *ptr, sf_count_t frames) ;
732 sf_count_t sf_readf_float (SNDFILE *sndfile, float *ptr, sf_count_t frames) ;
733 sf_count_t sf_writef_float (SNDFILE *sndfile, const float *ptr, sf_count_t frames) ;
735 sf_count_t sf_readf_double (SNDFILE *sndfile, double *ptr, sf_count_t frames) ;
736 sf_count_t sf_writef_double (SNDFILE *sndfile, const double *ptr, sf_count_t frames) ;
744 sf_count_t sf_read_short (SNDFILE *sndfile, short *ptr, sf_count_t items) ;
745 sf_count_t sf_write_short (SNDFILE *sndfile, const short *ptr, sf_count_t items) ;
747 sf_count_t sf_read_int (SNDFILE *sndfile, int *ptr, sf_count_t items) ;
748 sf_count_t sf_write_int (SNDFILE *sndfile, const int *ptr, sf_count_t items) ;
750 sf_count_t sf_read_float (SNDFILE *sndfile, float *ptr, sf_count_t items) ;
751 sf_count_t sf_write_float (SNDFILE *sndfile, const float *ptr, sf_count_t items) ;
753 sf_count_t sf_read_double (SNDFILE *sndfile, double *ptr, sf_count_t items) ;
754 sf_count_t sf_write_double (SNDFILE *sndfile, const double *ptr, sf_count_t items) ;
757 /* Close the SNDFILE and clean up all memory allocations associated with this
762 int sf_close (SNDFILE *sndfile) ;
770 void sf_write_sync (SNDFILE *sndfile) ;
780 SNDFILE* sf_wchar_open (const wchar_t *wpath, int mode, SF_INFO *sfinfo) ;
811 int sf_set_chunk (SNDFILE * sndfile, const SF_CHUNK_INFO * chunk_info) ;
821 ** (chunk_info->id_size) bytes of a chunk found in the SNDFILE* handle.
822 ** If chunk_info is NULL, an iterator to all chunks in the SNDFILE* handle
829 ** c) Another chunk iterator function is called on the same SNDFILE* handle
831 ** The memory for the iterator belongs to the SNDFILE* handle and is freed when
835 sf_get_chunk_iterator (SNDFILE * sndfile, const SF_CHUNK_INFO * chunk_info) ;