Lines Matching full:sfinfo
36 SF_INFO sfinfo;
76 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which];
82 SLuint32 nbytes = count * sfinfo.channels * sizeof(short);
150 //memset(&sfinfo, 0, sizeof(SF_INFO));
151 sfinfo.format = 0;
152 sndfile = sf_open(filename, SFM_READ, &sfinfo);
159 switch (sfinfo.channels) {
164 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels);
167 switch (sfinfo.samplerate) {
179 fprintf(stderr, "unsupported sample rate %d\n", sfinfo.samplerate);
182 switch (sfinfo.format & SF_FORMAT_TYPEMASK) {
186 fprintf(stderr, "unsupported format type 0x%x\n", sfinfo.format & SF_FORMAT_TYPEMASK);
189 switch (sfinfo.format & SF_FORMAT_SUBMASK) {
197 fprintf(stderr, "unsupported sub-format 0x%x\n", sfinfo.format & SF_FORMAT_SUBMASK);
201 buffers = (short *) malloc(framesPerBuffer * sfinfo.channels * sizeof(short) * numBuffers);
242 format_pcm.numChannels = sfinfo.channels;
243 format_pcm.samplesPerSec = sfinfo.samplerate * 1000;
318 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which];
328 SLuint32 nbytes = count * sfinfo.channels * sizeof(short);