| Index: media/base/sinc_resampler.cc
|
| diff --git a/media/base/sinc_resampler.cc b/media/base/sinc_resampler.cc
|
| index 87231857e38300946bc0d83814ba6a497b2639e0..869af1b3738dd07f207fca840d079688e90280ba 100644
|
| --- a/media/base/sinc_resampler.cc
|
| +++ b/media/base/sinc_resampler.cc
|
| @@ -214,6 +214,12 @@ int SincResampler::ChunkSize() {
|
| return kBlockSize / io_sample_rate_ratio_;
|
| }
|
|
|
| +void SincResampler::Flush() {
|
| + virtual_source_idx_ = 0;
|
| + buffer_primed_ = false;
|
| + memset(input_buffer_.get(), 0, sizeof(*input_buffer_.get()) * kBufferSize);
|
| +}
|
| +
|
| float SincResampler::Convolve(const float* input_ptr, const float* k1,
|
| const float* k2,
|
| double kernel_interpolation_factor) {
|
|
|