diff options
| author | 2011-03-01 11:46:15 -0800 | |
|---|---|---|
| committer | 2011-03-01 11:46:15 -0800 | |
| commit | 42b3de5833c737c8ec16babeb1f254baf623abfc (patch) | |
| tree | e2fdba3b7c09ebf19a2559c5cdb4d34ba202d4cf /services/audioflinger/AudioResampler.cpp | |
| parent | 7fc013753bdaddd429ffbc13ba33cc405f4ebcee (diff) | |
| parent | 4bb21c496b2c9427c18b8370dd631339e4e11094 (diff) | |
Merge "Fix issue 3479042."
Diffstat (limited to 'services/audioflinger/AudioResampler.cpp')
| -rw-r--r-- | services/audioflinger/AudioResampler.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/services/audioflinger/AudioResampler.cpp b/services/audioflinger/AudioResampler.cpp index 5dabacbb70a0..5c3b43fcbce4 100644 --- a/services/audioflinger/AudioResampler.cpp +++ b/services/audioflinger/AudioResampler.cpp @@ -148,6 +148,12 @@ void AudioResampler::setVolume(int16_t left, int16_t right) { mVolume[1] = right; } +void AudioResampler::reset() { + mInputIndex = 0; + mPhaseFraction = 0; + mBuffer.frameCount = 0; +} + // ---------------------------------------------------------------------------- void AudioResamplerOrder1::resample(int32_t* out, size_t outFrameCount, |