Lines Matching defs:file
59 SNDFILE *file ;
75 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
77 if ((k = (int) sf_write_short (file, buffer, BUFFER_SIZE)) != BUFFER_SIZE)
80 puts (sf_strerror (file)) ;
84 sf_close (file) ;
91 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
99 { printf ("Line %d: Incorrect number of.frames in file. (%d => %" PRId64 ")\n", __LINE__, BUFFER_SIZE, sfinfo.frames) ;
104 { printf ("Line %d: Incorrect number of channels in file.\n", __LINE__) ;
108 check_log_buffer_or_die (file, __LINE__) ;
110 sf_close (file) ;
119 SNDFILE *file ;
136 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
138 if ((k = (int) sf_write_short (file, buffer, BUFFER_SIZE)) != BUFFER_SIZE)
141 puts (sf_strerror (file)) ;
145 sf_close (file) ;
152 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
160 { printf ("Line %d: Incorrect number of.frames in file. (%d => %" PRId64 ")\n", __LINE__, BUFFER_SIZE, sfinfo.frames) ;
165 { printf ("Line %d: Incorrect number of channels in file.\n", __LINE__) ;
169 check_log_buffer_or_die (file, __LINE__) ;
171 if ((k = (int) sf_read_short (file, buffer, BUFFER_SIZE)) != BUFFER_SIZE)
182 sf_close (file) ;