• Home
  • Raw
  • Download

Lines Matching refs:channels

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