Home | History | Annotate | Download | only in audioflinger

Lines Matching full:channels

39     fprintf(stderr,"Usage: %s [-p] [-f] [-F] [-v] [-c channels]"
48 fprintf(stderr," -c # channels (1-2 for lq|mq|hq; 1-8 for dlq|dmq|dhq)\n");
109 int channels = 1;
132 channels = atoi(optarg);
181 if (channels < 1
182 || channels > (quality < AudioResampler::DYN_LOW_QUALITY ? 2 : 8)) {
183 fprintf(stderr, "invalid number of audio channels %d\n", channels);
218 input_size = info.frames * info.channels * sizeof(short);
222 channels = info.channels;
230 input_size = channels * sizeof(int16_t) * input_frames;
237 for (int j = 0; j < channels; j++) {
238 in[i*channels + j] = yi / (1 + j);
242 size_t input_framesize = channels * sizeof(int16_t);
249 input_framesize = channels * sizeof(float);
253 reinterpret_cast<int16_t*>(input_vaddr), input_frames * channels);
333 int output_channels = channels > 2 ? channels : 2; // output is at least stereo samples
345 AudioResampler* resampler = AudioResampler::create(format, channels,
383 AudioResampler* resampler = AudioResampler::create(format, channels,
427 printf("quality: %d channels: %d msec: %" PRId64 " Mfrms/s: %.2lf\n",
428 quality, channels, time/1000000, output_frames * looplimit / (time / 1e9) / 1e6);
434 resampler = AudioResampler::create(format, channels,
476 // stereo and multichannel preserve all channels.
478 int16_t* convert = (int16_t*) malloc(output_frames * channels * sizeof(int16_t));
485 for (int j = 0; j < channels; j++) {
498 convert[i * channels + j] = int16_t(s);
506 info.channels = channels;