• Home
  • Raw
  • Download

Lines Matching refs:sfinfo

207 	SF_INFO		sfinfo ;  in string_start_end_test()  local
212 memset (&sfinfo, 0, sizeof (sfinfo)) ; in string_start_end_test()
213 sfinfo.samplerate = 44100 ; in string_start_end_test()
214 sfinfo.channels = 1 ; in string_start_end_test()
215 sfinfo.frames = 0 ; in string_start_end_test()
216 sfinfo.format = typemajor | SF_FORMAT_PCM_16 ; in string_start_end_test()
218 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in string_start_end_test()
229 test_seek_or_die (file, 0, SEEK_SET, 0, sfinfo.channels, __LINE__) ; in string_start_end_test()
240 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in string_start_end_test()
244 if (sfinfo.frames != BUFFER_LEN) in string_start_end_test()
245 { printf ("***** Bad frame count %d (should be %d)\n\n", (int) sfinfo.frames, BUFFER_LEN) ; in string_start_end_test()
355 SF_INFO sfinfo ; in string_start_test() local
361 memset (&sfinfo, 0, sizeof (sfinfo)) ; in string_start_test()
362 sfinfo.samplerate = 44100 ; in string_start_test()
363 sfinfo.channels = 1 ; in string_start_test()
364 sfinfo.frames = 0 ; in string_start_test()
369 sfinfo.samplerate = 48000 ; in string_start_test()
379 sfinfo.format = formattype ; in string_start_test()
381 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in string_start_test()
398 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in string_start_test()
402 if (sfinfo.frames != BUFFER_LEN) in string_start_test()
403 { printf ("***** Bad frame count %d (should be %d)\n\n", (int) sfinfo.frames, BUFFER_LEN) ; in string_start_test()
497 SF_INFO sfinfo ; in string_multi_set_test() local
502 memset (&sfinfo, 0, sizeof (sfinfo)) ; in string_multi_set_test()
503 sfinfo.format = typemajor | SF_FORMAT_PCM_16 ; in string_multi_set_test()
504 sfinfo.samplerate = 44100 ; in string_multi_set_test()
505 sfinfo.channels = 1 ; in string_multi_set_test()
506 sfinfo.frames = 0 ; in string_multi_set_test()
508 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in string_multi_set_test()
537 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in string_multi_set_test()
565 SF_INFO sfinfo ; in string_rdwr_test() local
572 memset (&sfinfo, 0, sizeof (sfinfo)) ; in string_rdwr_test()
573 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ; in string_rdwr_test()
574 frames = sfinfo.frames ; in string_rdwr_test()
578 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ; in string_rdwr_test()
579 …exit_if_true (frames != sfinfo.frames, "\n\nLine %d : Frame count %" PRId64 " should be %" PRId64 … in string_rdwr_test()
585 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ; in string_rdwr_test()
586 frames = sfinfo.frames ; in string_rdwr_test()
590 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ; in string_rdwr_test()
596 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ; in string_rdwr_test()
606 …exit_if_true (frames != sfinfo.frames, "\n\nLine %d : Frame count %" PRId64 " should be %" PRId64 … in string_rdwr_test()
617 SF_INFO sfinfo ; in string_short_rdwr_test() local
623 memset (&sfinfo, 0, sizeof (sfinfo)) ; in string_short_rdwr_test()
624 sfinfo.format = typemajor | SF_FORMAT_PCM_16 ; in string_short_rdwr_test()
625 sfinfo.samplerate = 44100 ; in string_short_rdwr_test()
626 sfinfo.channels = 1 ; in string_short_rdwr_test()
627 sfinfo.frames = 0 ; in string_short_rdwr_test()
629 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_FALSE, __LINE__) ; in string_short_rdwr_test()
639 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_FALSE, __LINE__) ; in string_short_rdwr_test()
640 …exit_if_true (frames != sfinfo.frames, "\n\nLine %d : Frame count %" PRId64 " should be %" PRId64 … in string_short_rdwr_test()
654 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_FALSE, __LINE__) ; in string_short_rdwr_test()
726 SF_INFO sfinfo ; in string_rdwr_grow_test() local
737 memset (&sfinfo, 0, sizeof (sfinfo)) ; in string_rdwr_grow_test()
738 sfinfo.samplerate = 44100 ; in string_rdwr_grow_test()
739 sfinfo.channels = 2 ; in string_rdwr_grow_test()
740 sfinfo.frames = 0 ; in string_rdwr_grow_test()
741 sfinfo.format = typemajor | SF_FORMAT_PCM_16 ; in string_rdwr_grow_test()
743 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in string_rdwr_grow_test()
754 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ; in string_rdwr_grow_test()
761 frames = 2 * BUFFER_LEN / sfinfo.channels ; in string_rdwr_grow_test()
762 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in string_rdwr_grow_test()
763 …exit_if_true (frames != sfinfo.frames, "\n\nLine %d : Frame count %" PRId64 " should be %" PRId64 … in string_rdwr_grow_test()
783 SF_INFO sfinfo , sfinfo1 ; in string_header_update() local
791 memset (&sfinfo, 0, sizeof (sfinfo)) ; in string_header_update()
792 sfinfo.samplerate = 44100 ; in string_header_update()
793 sfinfo.channels = 2 ; in string_header_update()
794 sfinfo.frames = 0 ; in string_header_update()
795 sfinfo.format = typemajor | SF_FORMAT_PCM_16 ; in string_header_update()
797 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ; in string_header_update()
804 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ; in string_header_update()
816 frames = (BUFFER_LEN + GROW_BUFFER_AMOUNT) / sfinfo.channels ; in string_header_update()
827 file = test_open_file_or_die (filename, SFM_RDWR, &sfinfo, SF_TRUE, __LINE__) ; in string_header_update()
834 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ; in string_header_update()
835 frames = (BUFFER_LEN + 2*GROW_BUFFER_AMOUNT) / sfinfo.channels ; in string_header_update()
836 …exit_if_true (frames != sfinfo.frames, "\n\nLine %d : Frame count %" PRId64 " should be %" PRId64 … in string_header_update()