summaryrefslogtreecommitdiffstats
path: root/services/audioflinger
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-07-17 14:00:07 -0700
committerAndy Hung <hunga@google.com>2014-07-17 14:00:07 -0700
commit5567aaf4818007cd8e77329683a91c0f5d7a8837 (patch)
tree02be3dd69b9b538662abc033d08fd0207d2fd607 /services/audioflinger
parentd81d48961da30f657fb095ed00a697bd50266269 (diff)
downloadframeworks_av-5567aaf4818007cd8e77329683a91c0f5d7a8837.zip
frameworks_av-5567aaf4818007cd8e77329683a91c0f5d7a8837.tar.gz
frameworks_av-5567aaf4818007cd8e77329683a91c0f5d7a8837.tar.bz2
Fix initial audio glitch on startup
Also happens when restarting AudioFlinger. Bug: 16322824 Change-Id: I382b20174cb0639e04316130141f2094d7dd0cb3
Diffstat (limited to 'services/audioflinger')
-rwxr-xr-xservices/audioflinger/Threads.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/services/audioflinger/Threads.cpp b/services/audioflinger/Threads.cpp
index 0f01b02..a396aaf 100755
--- a/services/audioflinger/Threads.cpp
+++ b/services/audioflinger/Threads.cpp
@@ -3643,7 +3643,7 @@ track_is_ready: ;
memset(mEffectBuffer, 0, mEffectBufferSize);
}
// FIXME as a performance optimization, should remember previous zero status
- memset(mSinkBuffer, 0, mNormalFrameCount * mChannelCount * sizeof(int16_t));
+ memset(mSinkBuffer, 0, mNormalFrameCount * mFrameSize);
}
// if any fast tracks, then status is ready