diff options
author | Brad Fitzpatrick <bradfitz@android.com> | 2011-02-07 13:44:12 -0800 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-02-07 13:44:12 -0800 |
commit | 8473bb556421ac08f4e03abd5d149852114c9238 (patch) | |
tree | 2482264bd24755eac958bbf4a5e4e6152d76a24e /services | |
parent | 2b1222f8938356669672f35e0e53e176c78c40ef (diff) | |
parent | e08d819989d394ed171ba6f1e6d0fa14c29fc42d (diff) | |
download | frameworks_av-8473bb556421ac08f4e03abd5d149852114c9238.zip frameworks_av-8473bb556421ac08f4e03abd5d149852114c9238.tar.gz frameworks_av-8473bb556421ac08f4e03abd5d149852114c9238.tar.bz2 |
am be806fe8: am cc8f87e9: am f664d6f9: am b083d3b8: Merge "Initialize resampling buffer per track."
* commit 'be806fe8c1c7bb3ae70ae27dce41d672410af26a':
Initialize resampling buffer per track.
Diffstat (limited to 'services')
-rw-r--r-- | services/audioflinger/AudioMixer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/AudioMixer.cpp b/services/audioflinger/AudioMixer.cpp index 8aaa325..433f1f7 100644 --- a/services/audioflinger/AudioMixer.cpp +++ b/services/audioflinger/AudioMixer.cpp @@ -975,7 +975,6 @@ void AudioMixer::process__genericResampling(state_t* state) { int32_t* const outTemp = state->outputTemp; const size_t size = sizeof(int32_t) * MAX_NUM_CHANNELS * state->frameCount; - memset(outTemp, 0, size); size_t numFrames = state->frameCount; @@ -997,6 +996,7 @@ void AudioMixer::process__genericResampling(state_t* state) } e0 &= ~(e1); int32_t *out = t1.mainBuffer; + memset(outTemp, 0, size); while (e1) { const int i = 31 - __builtin_clz(e1); e1 &= ~(1<<i); |