Lines Matching refs:file
60 printf (" alac - test CAF/ALAC file functions\n") ;
91 { SNDFILE *file ;
105 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
107 test_write_short_or_die (file, 0, output, out_len, __LINE__) ;
109 sf_close (file) ;
113 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
116 exit_if_true (sfinfo.frames < out_len, "\n\nLine %d: Incorrect number of frames in file (too short). (%" PRId64 " should be %d)\n", __LINE__, sfinfo.frames, DFT_DATA_LENGTH) ;
117 exit_if_true (sfinfo.channels != 1, "\n\nLine %d: Incorrect number of channels in file.\n", __LINE__) ;
119 check_log_buffer_or_die (file, __LINE__) ;
121 test_read_short_or_die (file, 0, input, out_len, __LINE__) ;
123 sf_close (file) ;
137 { SNDFILE *file ;
151 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
153 test_write_int_or_die (file, 0, output, out_len, __LINE__) ;
155 sf_close (file) ;
159 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
162 exit_if_true (sfinfo.frames < out_len, "\n\nLine %d: Incorrect number of frames in file (too int). (%" PRId64 " should be %d)\n", __LINE__, sfinfo.frames, DFT_DATA_LENGTH) ;
163 exit_if_true (sfinfo.channels != 1, "\n\nLine %d: Incorrect number of channels in file.\n", __LINE__) ;
165 check_log_buffer_or_die (file, __LINE__) ;
167 test_read_int_or_die (file, 0, input, out_len, __LINE__) ;
169 sf_close (file) ;
183 { SNDFILE *file ;
197 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
199 test_write_float_or_die (file, 0, output, out_len, __LINE__) ;
201 sf_close (file) ;
205 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
208 exit_if_true (sfinfo.frames < out_len, "\n\nLine %d: Incorrect number of frames in file (too float). (%" PRId64 " should be %d)\n", __LINE__, sfinfo.frames, DFT_DATA_LENGTH) ;
209 exit_if_true (sfinfo.channels != 1, "\n\nLine %d: Incorrect number of channels in file.\n", __LINE__) ;
211 check_log_buffer_or_die (file, __LINE__) ;
213 test_read_float_or_die (file, 0, input, out_len, __LINE__) ;
215 sf_close (file) ;
229 { SNDFILE *file ;
243 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
245 test_write_double_or_die (file, 0, output, out_len, __LINE__) ;
247 sf_close (file) ;
251 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
254 exit_if_true (sfinfo.frames < out_len, "\n\nLine %d: Incorrect number of frames in file (too double). (%" PRId64 " should be %d)\n", __LINE__, sfinfo.frames, DFT_DATA_LENGTH) ;
255 exit_if_true (sfinfo.channels != 1, "\n\nLine %d: Incorrect number of channels in file.\n", __LINE__) ;
257 check_log_buffer_or_die (file, __LINE__) ;
259 test_read_double_or_die (file, 0, input, out_len, __LINE__) ;
261 sf_close (file) ;