Lines Matching defs:sndfile
33 #include <sndfile.h>
63 { SNDFILE *sndfile ;
75 sndfile = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ;
78 sf_command (sndfile, SFC_FILE_TRUNCATE, &start, sizeof (start)) ;
82 test_write_short_or_die (sndfile, 0, data, BUFFER_LEN, __LINE__) ;
84 sf_close (sndfile) ;
86 sndfile = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
87 check_log_buffer_or_die (sndfile, __LINE__) ;
91 dump_log_buffer (sndfile) ;
96 test_read_short_or_die (sndfile, 0, data, BUFFER_LEN, __LINE__) ;
103 sf_command (sndfile, SFC_SET_RAW_START_OFFSET, &start, sizeof (start)) ;
106 test_seek_or_die (sndfile, 0, SEEK_SET, 0, sfinfo.channels, __LINE__) ;
109 test_read_short_or_die (sndfile, 0, data, BUFFER_LEN - 1, __LINE__) ;
118 sf_command (sndfile, SFC_SET_RAW_START_OFFSET, &start, sizeof (start)) ;
121 test_seek_or_die (sndfile, 0, SEEK_SET, 0, sfinfo.channels, __LINE__) ;
124 test_read_short_or_die (sndfile, 0, data, BUFFER_LEN - 2, __LINE__) ;
133 sf_command (sndfile, SFC_SET_RAW_START_OFFSET, &start, sizeof (start)) ;
136 test_seek_or_die (sndfile, 0, SEEK_SET, 0, sfinfo.channels, __LINE__) ;
139 test_read_short_or_die (sndfile, 0, data, BUFFER_LEN, __LINE__) ;
146 sf_close (sndfile) ;