Home
last modified time | relevance | path

Searched refs:mResampler (Results 1 – 4 of 4) sorted by relevance

/frameworks/av/media/libaudioprocessing/
DRecordBufferConverter.cpp55 mResampler(NULL), in RecordBufferConverter()
67 delete mResampler; in ~RecordBufferConverter()
72 if (mResampler != NULL) { in reset()
73 mResampler->reset(); in reset()
85 if (mResampler == NULL) { in convert()
116 frames = mResampler->resample((int32_t*)mBuf, frames, provider); in convert()
171 delete mResampler; in updateParameters()
172 mResampler = NULL; in updateParameters()
174 mResampler = AudioResampler::create(AUDIO_FORMAT_PCM_FLOAT, in updateParameters()
176 mResampler->setSampleRate(mSrcSampleRate); in updateParameters()
[all …]
DAudioMixerBase.cpp423 track->mResampler.reset(nullptr); in setParameter()
473 if (trackSampleRate != devSampleRate || mResampler.get() != nullptr) { in setResampler()
476 if (mResampler.get() == nullptr) { in setResampler()
496 mResampler.reset(AudioResampler::create( in setResampler()
574 if (mResampler.get() != nullptr) { in recreateResampler()
576 mResampler.reset(nullptr); in recreateResampler()
739 mResampler->setSampleRate(sampleRate); in track__genericResample()
745 mResampler->setVolume(UNITY_GAIN_FLOAT, UNITY_GAIN_FLOAT); in track__genericResample()
747 mResampler->resample(temp, outFrameCount, bufferProvider); in track__genericResample()
755 mResampler->setVolume(UNITY_GAIN_FLOAT, UNITY_GAIN_FLOAT); in track__genericResample()
[all …]
/frameworks/av/media/libaudioprocessing/include/media/
DAudioMixerBase.h215 bool doesResample() const { return mResampler.get() != nullptr; } in doesResample()
217 void resetResampler() { if (mResampler.get() != nullptr) mResampler->reset(); } in resetResampler()
219 size_t getUnreleasedFrames() const { return mResampler.get() != nullptr ? in getUnreleasedFrames()
220 mResampler->getUnreleasedFrames() : 0; }; in getUnreleasedFrames()
260 std::unique_ptr<AudioResampler> mResampler; member
DRecordBufferConverter.h107 AudioResampler *mResampler; variable