• Home
  • Raw
  • Download

Lines Matching refs:sfinfo

132 	SF_INFO		sfinfo ;
159 sfinfo.samplerate = 44100 ;
160 sfinfo.frames = 123456789 ; /* Wrong length. Library should correct this on sf_close. */
161 sfinfo.channels = 1 ;
162 sfinfo.format = filetype ;
164 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
172 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
174 if (sfinfo.format != filetype)
175 …\n\nLine %d: Returned format incorrect (0x%08X => 0x%08X).\n", __LINE__, filetype, sfinfo.format) ;
179 if (sfinfo.frames != items)
180 …e %d: Incorrect number of frames in file. (%d => %" PRId64 ")\n", __LINE__, items, sfinfo.frames) ;
184 if (sfinfo.channels != 1)
221 sfinfo.samplerate = 44100 ;
222 sfinfo.frames = 123456789 ; /* Wrong length. Library should correct this on sf_close. */
223 sfinfo.channels = 1 ;
224 sfinfo.format = filetype ;
226 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
234 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
236 if (sfinfo.format != filetype)
237 …\n\nLine %d: Returned format incorrect (0x%08X => 0x%08X).\n", __LINE__, filetype, sfinfo.format) ;
241 if (sfinfo.frames != items)
242 …e %d: Incorrect number of frames in file. (%d => %" PRId64 ")\n", __LINE__, items, sfinfo.frames) ;
246 if (sfinfo.channels != 1)
281 sfinfo.samplerate = 44100 ;
282 sfinfo.frames = 123456789 ; /* Wrong length. Library should correct this on sf_close. */
283 sfinfo.channels = 1 ;
284 sfinfo.format = filetype ;
286 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
296 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
298 if (sfinfo.format != filetype)
299 …\n\nLine %d: Returned format incorrect (0x%08X => 0x%08X).\n", __LINE__, filetype, sfinfo.format) ;
303 if (sfinfo.frames != items)
304 …e %d: Incorrect number of frames in file. (%d => %" PRId64 ")\n", __LINE__, items, sfinfo.frames) ;
308 if (sfinfo.channels != 1)
344 sfinfo.samplerate = 44100 ;
345 sfinfo.frames = 123456789 ; /* Wrong length. Library should correct this on sf_close. */
346 sfinfo.channels = 1 ;
347 sfinfo.format = filetype ;
349 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
359 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
361 if (sfinfo.format != filetype)
362 …\n\nLine %d: Returned format incorrect (0x%08X => 0x%08X).\n", __LINE__, filetype, sfinfo.format) ;
366 if (sfinfo.frames != items)
367 …e %d: Incorrect number of frames in file. (%d => %" PRId64 ")\n", __LINE__, items, sfinfo.frames) ;
371 if (sfinfo.channels != 1)
404 SF_INFO sfinfo ;
419 sfinfo.samplerate = 44100 ;
420 sfinfo.frames = items ;
421 sfinfo.channels = 1 ;
422 sfinfo.format = filetype ;
424 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
441 memset (&sfinfo, 0, sizeof (sfinfo)) ;
443 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
451 if (sfinfo.format != filetype)
452 … : Returned format incorrect (0x%08X => 0x%08X).\n", __FILE__, __LINE__, filetype, sfinfo.format) ;
456 if (sfinfo.frames != items)
457 …rrect number of frames in file. (%d => %" PRId64 ")\n", __FILE__, __LINE__, items, sfinfo.frames) ;
461 if (sfinfo.channels != 1)
479 test_seek_or_die (file, 0, SEEK_END, sfinfo.frames, sfinfo.channels, __LINE__) ;
482 test_seek_or_die (file, 0, SEEK_SET, 0, sfinfo.channels, __LINE__) ;
494 test_seek_or_die (file, 10, SEEK_SET, 10, sfinfo.channels, __LINE__) ;
506 test_seek_or_die (file, 6, SEEK_CUR, 20, sfinfo.channels, __LINE__) ;
518 test_seek_or_die (file, -1 * (sfinfo.frames - 10), SEEK_END, 10, sfinfo.channels, __LINE__) ;
544 sfinfo.samplerate = 44100 ;
545 sfinfo.frames = items ;
546 sfinfo.channels = 2 ;
547 sfinfo.format = filetype ;
549 frames = items / sfinfo.channels ;
551 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
568 memset (&sfinfo, 0, sizeof (sfinfo)) ;
570 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
578 if (sfinfo.format != filetype)
579 … : Returned format incorrect (0x%08X => 0x%08X).\n", __FILE__, __LINE__, filetype, sfinfo.format) ;
583 if (sfinfo.frames != frames)
584 …rect number of frames in file. (%d => %" PRId64 ")\n", __FILE__, __LINE__, frames, sfinfo.frames) ;
588 if (sfinfo.channels != 2)
605 test_seek_or_die (file, 0, SEEK_SET, 0, sfinfo.channels, __LINE__) ;
617 test_seek_or_die (file, 10, SEEK_SET, 10, sfinfo.channels, __LINE__) ;
629 test_seek_or_die (file, 8, SEEK_CUR, 20, sfinfo.channels, __LINE__) ;
641 test_seek_or_die (file, -1 * (sfinfo.frames - 10), SEEK_END, 10, sfinfo.channels, __LINE__) ;
661 SF_INFO sfinfo ;
678 sfinfo.samplerate = 44100 ;
679 sfinfo.frames = items ;
680 sfinfo.channels = 1 ;
681 sfinfo.format = filetype ;
683 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
700 memset (&sfinfo, 0, sizeof (sfinfo)) ;
702 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
710 if (sfinfo.format != filetype)
711 … : Returned format incorrect (0x%08X => 0x%08X).\n", __FILE__, __LINE__, filetype, sfinfo.format) ;
715 if (sfinfo.frames != items)
716 …rrect number of frames in file. (%d => %" PRId64 ")\n", __FILE__, __LINE__, items, sfinfo.frames) ;
720 if (sfinfo.channels != 1)
738 test_seek_or_die (file, 0, SEEK_SET, 0, sfinfo.channels, __LINE__) ;
750 test_seek_or_die (file, 10, SEEK_SET, 10, sfinfo.channels, __LINE__) ;
754 test_seek_or_die (file, 0, SEEK_CUR, 14, sfinfo.channels, __LINE__) ;
765 test_seek_or_die (file, 6, SEEK_CUR, 20, sfinfo.channels, __LINE__) ;
777 test_seek_or_die (file, -1 * (sfinfo.frames - 10), SEEK_END, 10, sfinfo.channels, __LINE__) ;
803 sfinfo.samplerate = 44100 ;
804 sfinfo.frames = items ;
805 sfinfo.channels = 2 ;
806 sfinfo.format = filetype ;
808 frames = items / sfinfo.channels ;
810 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
827 memset (&sfinfo, 0, sizeof (sfinfo)) ;
829 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
837 if (sfinfo.format != filetype)
838 … : Returned format incorrect (0x%08X => 0x%08X).\n", __FILE__, __LINE__, filetype, sfinfo.format) ;
842 if (sfinfo.frames != frames)
843 …rect number of frames in file. (%d => %" PRId64 ")\n", __FILE__, __LINE__, frames, sfinfo.frames) ;
847 if (sfinfo.channels != 2)
865 test_seek_or_die (file, 0, SEEK_SET, 0, sfinfo.channels, __LINE__) ;
877 test_seek_or_die (file, 10, SEEK_SET, 10, sfinfo.channels, __LINE__) ;
889 test_seek_or_die (file, 8, SEEK_CUR, 20, sfinfo.channels, __LINE__) ;
901 test_seek_or_die (file, -1 * (sfinfo.frames -10), SEEK_END, 10, sfinfo.channels, __LINE__) ;