commit | bd179d1adb974f86b60240acceb70d86fdf58d1c | [log] [tgz] |
---|---|---|
author | Hochi Huang <Hochi.Huang@mediatek.com> | Mon Mar 28 13:30:46 2016 -0700 |
committer | Andy Hung <hunga@google.com> | Mon Mar 28 23:52:51 2016 +0000 |
tree | 2222ee57fe194e17ea9894414720fb771a0a2fe4 | |
parent | d5949f1a30a17a8a1f3deff84d19268560e5f291 [diff] [blame] |
Clear internal resampler state when receiving empty buffer Bug: 27876700 Change-Id: I2a7d7a79c17b1a15def67f65c0c7fec668888177
diff --git a/services/audioflinger/AudioResamplerDyn.h b/services/audioflinger/AudioResamplerDyn.h index 3b1c381..a5ea821 100644 --- a/services/audioflinger/AudioResamplerDyn.h +++ b/services/audioflinger/AudioResamplerDyn.h
@@ -96,6 +96,8 @@ inline void readAdvance(TI*& impulse, const int halfNumCoefs, const TI* const in, const size_t inputIndex); + void reset(); + private: // tuning parameter guidelines: 2 <= multiple <= 8 static const int kStateSizeMultipleOfFilterLength = 4;