Lines Matching refs:sfinfo

117 	SF_INFO		sfinfo ;
122 memset (&sfinfo, 0, sizeof (sfinfo)) ;
123 sfinfo.samplerate = 44100 ;
124 sfinfo.format = filetype ;
125 sfinfo.channels = 4 ;
126 sfinfo.frames = 0 ;
128 frames = BUFFER_LEN / sfinfo.channels ;
141 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, 0, __LINE__) ;
156 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, 0, __LINE__) ;
158 if (sfinfo.format != filetype)
159 { printf ("\n\nLine %d: Returned format incorrect (0x%08X => 0x%08X).\n", __LINE__, filetype, sfinfo.format) ;
163 if (sfinfo.frames != frames)
164 { printf ("\n\nLine %d: Incorrect number of frames in file. (%d => %ld)\n", __LINE__, frames, (long) sfinfo.frames) ;
168 if (sfinfo.channels != 4)
184 if (sf_command (file, SFC_GET_MAX_ALL_CHANNELS, data, sizeof (double) * sfinfo.channels) == SF_FALSE)
208 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, 0, __LINE__) ;
223 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, 0, __LINE__) ;
231 if (sf_command (file, SFC_GET_MAX_ALL_CHANNELS, data, sizeof (double) * sfinfo.channels))
318 SF_INFO sfinfo ;
328 sfinfo.samplerate = 44100 ;
329 sfinfo.channels = 2 ;
330 sfinfo.format = filetype ;
331 sfinfo.frames = 0 ;
334 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_FALSE, __LINE__) ;
343 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ;
357 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ;
359 exit_if_true (sfinfo.channels * sfinfo.frames != 2 * ARRAY_LEN (small_data),
360 "Line %d : frame count is %" PRId64 ", should be %zd\n", __LINE__, sfinfo.frames, 2 * ARRAY_LEN (small_data)) ;