Lines Matching full:resampler
49 fprintf(stderr," -q resampler quality\n");
343 AudioResampler* resampler = AudioResampler::create(format, channels,
349 resampler->setSampleRate(9000);
350 resampler->setSampleRate(12000);
351 resampler->setSampleRate(20000);
352 resampler->setSampleRate(30000);
364 resampler->setSampleRate(1000);
368 resampler->setSampleRate(1000+i);
376 resampler->reset();
377 delete resampler;
381 AudioResampler* resampler = AudioResampler::create(format, channels,
384 resampler->setSampleRate(input_freq);
385 resampler->setVolume(AudioResampler::UNITY_GAIN_FLOAT, AudioResampler::UNITY_GAIN_FLOAT);
413 resampler->resample((int*) output_vaddr, output_frames, &provider);
427 resampler->reset();
430 // delete and recreate resampler here.
431 delete resampler;
432 resampler = AudioResampler::create(format, channels,
434 resampler->setSampleRate(input_freq);
435 resampler->setVolume(AudioResampler::UNITY_GAIN_FLOAT, AudioResampler::UNITY_GAIN_FLOAT);
453 resampler->resample((int*) output_vaddr + output_channels*i, thisFrames, &provider);
459 resampler->reset();
463 delete resampler;
464 resampler = NULL;