Lines Matching full:channels
39 void resample(int channels, void *output,
52 (int32_t*) output + channels*i, thisFrames, provider);
72 void testBufferIncrement(size_t channels, bool useFloat,
81 provider.setChirp<float>(channels,
84 provider.setChirp<int16_t>(channels,
91 size_t outputFrameSize = channels * (useFloat ? sizeof(float) : sizeof(int32_t));
98 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
107 resample(channels, reference, outputFrames, refIncr, &provider, resampler);
116 resampler = android::AudioResampler::create(format, channels, outputFreq, quality);
131 resample(channels, test, outputFrames, outIncr, &provider, resampler);
163 void testStopbandDownconversion(size_t channels,
171 provider.setChirp<TI>(channels,
177 size_t outputFrameSize = channels * sizeof(TO);
186 channels, outputFreq, quality);
195 resample(channels, reference, outputFrames, refIncr, &provider, resampler);
204 for (size_t i = 0; i < channels; ++i) {
205 double passbandEnergy = signalEnergy(out, out + passbandFrame * channels, channels);
206 double stopbandEnergy = signalEnergy(out + stopbandFrame * channels,
207 out + outputFrames * channels, channels);
217 std::cout << out[i+passbandFrame*channels] << std::endl;
220 std::cout << out[i+stopbandFrame*channels] << std::endl;