Home | History | Annotate | Download | only in sandbox

Lines Matching refs:sfinfo

44 SF_INFO sfinfo;
88 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which];
92 memset(buffer, 0, framesPerBuffer * sfinfo.channels * sizeof(short));
97 SLuint32 nbytes = count * sfinfo.channels * sizeof(short);
118 short *temp = (short *) malloc(READ_FRAMES * sfinfo.channels * sizeof(short));
135 ptr += actual * sfinfo.channels;
231 //memset(&sfinfo, 0, sizeof(SF_INFO));
232 sfinfo.format = 0;
233 sndfile = sf_open(filename, SFM_READ, &sfinfo);
240 const android::NBAIO_Format nbaio_format = android::Format_from_SR_C(44100, sfinfo.channels);
243 switch (sfinfo.channels) {
248 fprintf(stderr, "unsupported channel count %d\n", sfinfo.channels);
252 switch (sfinfo.samplerate) {
264 fprintf(stderr, "unsupported sample rate %d\n", sfinfo.samplerate);
268 switch (sfinfo.format & SF_FORMAT_TYPEMASK) {
272 fprintf(stderr, "unsupported format type 0x%x\n", sfinfo.format & SF_FORMAT_TYPEMASK);
276 switch (sfinfo.format & SF_FORMAT_SUBMASK) {
281 fprintf(stderr, "unsupported sub-format 0x%x\n", sfinfo.format & SF_FORMAT_SUBMASK);
287 buffers = (short *) malloc(framesPerBuffer * sfinfo.channels * sizeof(short) * numBuffers);
328 format_pcm.numChannels = sfinfo.channels;
329 format_pcm.samplesPerSec = sfinfo.samplerate * 1000;
429 short *buffer = &buffers[framesPerBuffer * sfinfo.channels * which];
439 SLuint32 nbytes = count * sfinfo.channels * sizeof(short);