| 31 | } |
| 32 | |
| 33 | void Resampler::reset() |
| 34 | { |
| 35 | mInternalBuffer.clear(); |
| 36 | mNumInputSamplesAvailable = mInitPadding; |
| 37 | mInterpolator.reset(); |
| 38 | |
| 39 | for (auto& lowpass_filter: mLowpassFilters) |
| 40 | lowpass_filter.reset(); |
| 41 | } |
| 42 | |
| 43 | int Resampler::processBlock(const float* inBuffer, float* outBuffer, int inNumSamples) |
| 44 | { |