Lines Matching refs:sfinfo

219 	SF_INFO		sfinfo ;
225 memset (&sfinfo, 0, sizeof (sfinfo)) ;
226 sfinfo.samplerate = 44100 ;
227 sfinfo.channels = 1 ;
228 sfinfo.frames = 0 ;
229 sfinfo.format = typemajor | SF_FORMAT_PCM_16 ;
231 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
242 test_seek_or_die (file, 0, SEEK_SET, 0, sfinfo.channels, __LINE__) ;
253 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
257 if (sfinfo.frames != BUFFER_LEN)
258 { printf ("***** Bad frame count %d (should be %d)\n\n", (int) sfinfo.frames, BUFFER_LEN) ;
368 SF_INFO sfinfo ;
375 memset (&sfinfo, 0, sizeof (sfinfo)) ;
376 sfinfo.samplerate = 44100 ;
377 sfinfo.channels = 1 ;
378 sfinfo.frames = 0 ;
383 sfinfo.samplerate = 48000 ;
394 sfinfo.format = formattype ;
396 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
419 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
423 if (sfinfo.frames != BUFFER_LEN)
424 { printf ("***** Bad frame count %d (should be %d)\n\n", (int) sfinfo.frames, BUFFER_LEN) ;
553 SF_INFO sfinfo ;
559 memset (&sfinfo, 0, sizeof (sfinfo)) ;
560 sfinfo.format = typemajor | SF_FORMAT_PCM_16 ;
561 sfinfo.samplerate = 44100 ;
562 sfinfo.channels = 1 ;
563 sfinfo.frames = 0 ;
565 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
594 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
622 SF_INFO sfinfo ;
630 memset (&sfinfo, 0, sizeof (sfinfo)) ;
631 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ;
632 frames = sfinfo.frames ;
636 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ;
637 exit_if_true (frames != sfinfo.frames, "\n\nLine %d : Frame count %" PRId64 " should be %" PRId64 ".\n", __LINE__, sfinfo.frames, frames) ;
643 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ;
644 frames = sfinfo.frames ;
648 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ;
654 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ;
664 exit_if_true (frames != sfinfo.frames, "\n\nLine %d : Frame count %" PRId64 " should be %" PRId64 ".\n", __LINE__, sfinfo.frames, frames) ;
675 SF_INFO sfinfo ;
682 memset (&sfinfo, 0, sizeof (sfinfo)) ;
683 sfinfo.format = typemajor | SF_FORMAT_PCM_16 ;
684 sfinfo.samplerate = 44100 ;
685 sfinfo.channels = 1 ;
686 sfinfo.frames = 0 ;
688 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_FALSE, __LINE__) ;
698 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ;
699 exit_if_true (frames != sfinfo.frames, "\n\nLine %d : Frame count %" PRId64 " should be %" PRId64 ".\n", __LINE__, sfinfo.frames, frames) ;
713 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ;
786 SF_INFO sfinfo ;
798 memset (&sfinfo, 0, sizeof (sfinfo)) ;
799 sfinfo.samplerate = 44100 ;
800 sfinfo.channels = 2 ;
801 sfinfo.frames = 0 ;
802 sfinfo.format = typemajor | SF_FORMAT_PCM_16 ;
804 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
815 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ;
822 frames = 2 * BUFFER_LEN / sfinfo.channels ;
823 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
824 exit_if_true (frames != sfinfo.frames, "\n\nLine %d : Frame count %" PRId64 " should be %" PRId64 ".\n", __LINE__, sfinfo.frames, frames) ;
844 SF_INFO sfinfo , sfinfo1 ;
853 memset (&sfinfo, 0, sizeof (sfinfo)) ;
854 sfinfo.samplerate = 44100 ;
855 sfinfo.channels = 2 ;
856 sfinfo.frames = 0 ;
857 sfinfo.format = typemajor | SF_FORMAT_PCM_16 ;
859 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
866 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ;
878 frames = (BUFFER_LEN + GROW_BUFFER_AMOUNT) / sfinfo.channels ;
889 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ;
896 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
897 frames = (BUFFER_LEN + 2*GROW_BUFFER_AMOUNT) / sfinfo.channels ;
898 exit_if_true (frames != sfinfo.frames, "\n\nLine %d : Frame count %" PRId64 " should be %" PRId64 ".\n", __LINE__, sfinfo.frames, frames) ;