Lines Matching defs:sfinfo
36 SF_INFO sfinfo;
46 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which];
52 SLresult result = (*bufq)->Enqueue(bufq, buffer, count * sfinfo.channels *
88 //memset(&sfinfo, 0, sizeof(SF_INFO));
89 sfinfo.format = 0;
90 sndfile = sf_open(filename, SFM_READ, &sfinfo);
97 switch (sfinfo.channels) {
102 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels);
105 switch (sfinfo.samplerate) {
117 fprintf(stderr, "unsupported sample rate %d\n", sfinfo.samplerate);
120 switch (sfinfo.format & SF_FORMAT_TYPEMASK) {
124 fprintf(stderr, "unsupported format type 0x%x\n", sfinfo.format & SF_FORMAT_TYPEMASK);
127 switch (sfinfo.format & SF_FORMAT_SUBMASK) {
135 fprintf(stderr, "unsupported sub-format 0x%x\n", sfinfo.format & SF_FORMAT_SUBMASK);
139 buffers = (short *) malloc(framesPerBuffer * sfinfo.channels * sizeof(short) * numBuffers);
180 format_pcm.numChannels = sfinfo.channels;
181 format_pcm.samplesPerSec = sfinfo.samplerate * 1000;
234 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which];
244 result = (*playerBufferQueue)->Enqueue(playerBufferQueue, buffer, count * sfinfo.channels *