Lines Matching refs:file
53 printf (" wav - test WAV file peak chunk\n") ;
54 printf (" aiff - test AIFF file PEAK chunk\n") ;
138 { SNDFILE *file ;
149 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
152 if (sf_command (file, SFC_SET_DITHER_ON_WRITE, NULL, SF_TRUE) == 0)
161 if (sf_command (file, SFC_SET_DITHER_ON_WRITE, &dither, sizeof (dither)) != 0)
163 __LINE__, sf_strerror (file)) ;
167 /* Write data to file. */
168 test_write_short_or_die (file, 0, data_out, BUFFER_LEN, __LINE__) ;
169 test_seek_or_die (file, 0, SEEK_SET, 0, sfinfo.channels, __LINE__) ;
171 sf_close (file) ;
173 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
179 sf_close (file) ;