Lines Matching refs:sfinfo

229 	SF_INFO		sfinfo ;
242 sfinfo.samplerate = 44100 ;
243 sfinfo.format = format ;
244 sfinfo.channels = 1 ;
245 sfinfo.frames = 0 ;
247 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
251 memset (&sfinfo, 0, sizeof (sfinfo)) ;
253 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
270 SF_INFO sfinfo ;
290 sfinfo.samplerate = 44100 ;
291 sfinfo.format = format ;
292 sfinfo.channels = 1 ;
293 sfinfo.frames = 0 ;
295 if ((file = sf_open (filename, SFM_WRITE, &sfinfo)) != NULL)
325 SF_INFO sfinfo ;
360 sfinfo.samplerate = 44100 ;
361 sfinfo.format = (typemajor | SF_FORMAT_PCM_16) ;
362 sfinfo.channels = 1 ;
363 sfinfo.frames = 0 ;
365 if ((file = sf_open (filename, SFM_WRITE, &sfinfo)) != NULL)
395 SF_INFO sfinfo ;
400 sfinfo.samplerate = 44100 ;
401 sfinfo.format = SF_FORMAT_WAVEX | SF_FORMAT_PCM_16 ;
402 sfinfo.channels = 4 ;
404 frames = ARRAY_LEN (buffer) / sfinfo.channels ;
406 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
411 memset (&sfinfo, 0, sizeof (sfinfo)) ;
413 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
432 SF_INFO sfinfo ;
437 sf_info_clear (&sfinfo) ;
439 sfinfo.samplerate = 44100 ;
440 sfinfo.frames = ARRAY_LEN (output) ;
441 sfinfo.channels = 1 ;
442 sfinfo.format = SF_FORMAT_RF64 | SF_FORMAT_PCM_16 ;
444 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
457 sf_info_clear (&sfinfo) ;
459 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
461 exit_if_true (sfinfo.format != (SF_FORMAT_WAVEX | SF_FORMAT_PCM_16), "\n\nLine %d: RF64 to WAV downgrade failed.\n", __LINE__) ;
462 exit_if_true (sfinfo.frames != ARRAY_LEN (output), "\n\nLine %d: Incorrect number of frames in file (too short). (%d should be %d)\n", __LINE__, (int) sfinfo.frames, (int) ARRAY_LEN (output)) ;
463 exit_if_true (sfinfo.channels != 1, "\n\nLine %d: Incorrect number of channels in file.\n", __LINE__) ;
487 SF_INFO sfinfo ;
492 sf_info_clear (&sfinfo) ;
497 sfinfo.samplerate = 44100 ;
498 sfinfo.frames = ARRAY_LEN (output) ;
499 sfinfo.channels = 1 ;
500 sfinfo.format = SF_FORMAT_RF64 | SF_FORMAT_PCM_32 ;
502 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
513 sf_info_clear (&sfinfo) ;
515 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
517 exit_if_true (sfinfo.format != (SF_FORMAT_RF64 | SF_FORMAT_PCM_32), "\n\nLine %d: RF64 to WAV downgrade should have failed.\n", __LINE__) ;
518 exit_if_true (sfinfo.channels != 1, "\n\nLine %d: Incorrect number of channels in file.\n", __LINE__) ;
519 exit_if_true (sfinfo.frames != output_frames, "\n\nLine %d: Incorrect number of frames in file (%d should be %d).\n", __LINE__, (int) sfinfo.frames, (int) output_frames) ;