Lines Matching refs:file
67 { SNDFILE *file ;
79 /* Write the test file. */
80 file = test_open_file_or_die (filename, SFM_WRITE, &wsfinfo, SF_FALSE, __LINE__) ;
81 test_writef_float_or_die (file, 0, float_data, wframes, __LINE__) ;
82 sf_close (file) ;
85 file = test_open_file_or_die (filename, SFM_READ, &rsfinfo, SF_FALSE, __LINE__) ;
87 "\n\nLine %d : Frames in file %" PRId64 ".\n\n", __LINE__, rsfinfo.frames) ;
91 sf_command (file, SFC_SET_SCALE_FLOAT_INT_READ, NULL, SF_TRUE) ;
93 test_readf_float_or_die (file, 0, read_float, rsfinfo.frames, __LINE__) ;
97 test_seek_or_die (file, 0, SEEK_SET, 0, ch, __LINE__) ;
98 test_readf_short_or_die (file, 0, read_short, rsfinfo.frames, __LINE__) ;
107 test_seek_or_die (file, 0, SEEK_SET, 0, ch, __LINE__) ;
108 test_readf_int_or_die (file, 0, read_int, rsfinfo.frames, __LINE__) ;
116 sf_close (file) ;