Lines Matching refs:sfinfo
41 SF_INFO sfinfo; variable
246 sfinfo.format = 0; in main()
247 sndfile = sf_open(filename, SFM_READ, &sfinfo); in main()
254 switch (sfinfo.channels) { in main()
259 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels); in main()
263 if (sfinfo.samplerate < 8000 || sfinfo.samplerate > 192000) { in main()
264 fprintf(stderr, "unsupported sample rate %d\n", sfinfo.samplerate); in main()
268 switch (sfinfo.format & SF_FORMAT_TYPEMASK) { in main()
272 fprintf(stderr, "unsupported format type 0x%x\n", sfinfo.format & SF_FORMAT_TYPEMASK); in main()
276 switch (sfinfo.format & SF_FORMAT_SUBMASK) { in main()
303 fprintf(stderr, "unsupported sub-format 0x%x\n", sfinfo.format & SF_FORMAT_SUBMASK); in main()
311 sfframesize = sfinfo.channels * sizeof(float); in main()
315 sfframesize = sfinfo.channels * sizeof(int); in main()
319 sfframesize = sfinfo.channels * sizeof(int); // use int size in main()
323 sfframesize = sfinfo.channels * sizeof(short); in main()
327 sfframesize = sfinfo.channels * sizeof(short); // use short size in main()
377 format_pcm.numChannels = sfinfo.channels; in main()
378 format_pcm.sampleRate = sfinfo.samplerate * 1000; in main()