Lines Matching refs:sfinfo

60 	SF_INFO		sfinfo ;
70 sfinfo.samplerate = 8000 ;
71 sfinfo.frames = 0 ;
72 sfinfo.channels = 1 ;
73 sfinfo.format = SF_FORMAT_RAW | format ;
75 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
88 /* We should be able to detect these so clear sfinfo. */
89 memset (&sfinfo, 0, sizeof (sfinfo)) ;
91 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
93 if (sfinfo.format != expected)
94 { printf ("Line %d: Returned format incorrect (0x%08X => 0x%08X).\n", __LINE__, expected, sfinfo.format) ;
98 if (sfinfo.frames < BUFFER_SIZE)
99 { printf ("Line %d: Incorrect number of.frames in file. (%d => %" PRId64 ")\n", __LINE__, BUFFER_SIZE, sfinfo.frames) ;
103 if (sfinfo.channels != 1)
120 SF_INFO sfinfo ;
131 sfinfo.samplerate = 32000 ;
132 sfinfo.frames = 123456789 ; /* Wrong length. Library should correct this on sf_close. */
133 sfinfo.channels = 1 ;
134 sfinfo.format = filetype ;
136 file = test_open_file_or_die (filename, SFM_WRITE, &sfinfo, SF_TRUE, __LINE__) ;
150 sfinfo.format = filetype = SF_ENDIAN_LITTLE | SF_FORMAT_RAW | SF_FORMAT_PCM_16 ;
152 file = test_open_file_or_die (filename, SFM_READ, &sfinfo, SF_TRUE, __LINE__) ;
154 if (sfinfo.format != filetype)
155 { printf ("Line %d: Returned format incorrect (0x%08X => 0x%08X).\n", __LINE__, filetype, sfinfo.format) ;
159 if (sfinfo.frames < BUFFER_SIZE)
160 { printf ("Line %d: Incorrect number of.frames in file. (%d => %" PRId64 ")\n", __LINE__, BUFFER_SIZE, sfinfo.frames) ;
164 if (sfinfo.channels != 1)