Lines Matching defs:channels
39 void resample(int channels, void *output,
51 resampler->resample((int32_t*) output + channels*i, thisFrames, provider);
69 void testBufferIncrement(size_t channels, bool useFloat,
78 provider.setChirp<float>(channels,
81 provider.setChirp<int16_t>(channels,
88 size_t outputFrameSize = channels * (useFloat ? sizeof(float) : sizeof(int32_t));
95 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
104 resample(channels, reference, outputFrames, refIncr, &provider, resampler);
113 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
128 resample(channels, test, outputFrames, outIncr, &provider, resampler);
160 void testStopbandDownconversion(size_t channels,
168 provider.setChirp<TI>(channels,
174 size_t outputFrameSize = channels * sizeof(TO);
183 channels, outputFreq, quality);
192 resample(channels, reference, outputFrames, refIncr, &provider, resampler);
201 for (size_t i = 0; i < channels; ++i) {
202 double passbandEnergy = signalEnergy(out, out + passbandFrame * channels, channels);
203 double stopbandEnergy = signalEnergy(out + stopbandFrame * channels,
204 out + outputFrames * channels, channels);
214 std::cout << out[i+passbandFrame*channels] << std::endl;
217 std::cout << out[i+stopbandFrame*channels] << std::endl;