Lines Matching refs:channels
110 int channels = 1; in main() local
133 channels = atoi(optarg); in main()
182 if (channels < 1 in main()
183 || channels > (quality < AudioResampler::DYN_LOW_QUALITY ? 2 : 8)) { in main()
184 fprintf(stderr, "invalid number of audio channels %d\n", channels); in main()
219 input_size = info.frames * info.channels * sizeof(short); in main()
223 channels = info.channels; in main()
231 input_size = channels * sizeof(int16_t) * input_frames; in main()
238 for (int j = 0; j < channels; j++) { in main()
239 in[i*channels + j] = yi / (1 + j); in main()
243 size_t input_framesize = channels * sizeof(int16_t); in main()
250 input_framesize = channels * sizeof(float); in main()
254 reinterpret_cast<int16_t*>(input_vaddr), input_frames * channels); in main()
332 int output_channels = channels > 2 ? channels : 2; // output is at least stereo samples in main()
344 AudioResampler* resampler = AudioResampler::create(format, channels, in main()
382 AudioResampler* resampler = AudioResampler::create(format, channels, in main()
427 quality, channels, time/1000000, output_frames * looplimit / (time / 1e9) / 1e6); in main()
433 resampler = AudioResampler::create(format, channels, in main()
477 int16_t* convert = (int16_t*) malloc(output_frames * channels * sizeof(int16_t)); in main()
484 for (int j = 0; j < channels; j++) { in main()
497 convert[i * channels + j] = int16_t(s); in main()
505 info.channels = channels; in main()