summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorAndy Hung <hunga@google.com>2014-07-17 21:23:26 +0000
committerAndroid (Google) Code Review <android-gerrit@google.com>2014-07-17 21:09:48 +0000
commit2e8186a258c934798129847f66171df36e95d23e (patch)
tree4da37472f2c220fe210c1539fbd536ce5942d77d /services
parentd1a4f35ec10f36c33cf7391e800910da8fdebb6e (diff)
parent5567aaf4818007cd8e77329683a91c0f5d7a8837 (diff)
downloadframeworks_av-2e8186a258c934798129847f66171df36e95d23e.zip
frameworks_av-2e8186a258c934798129847f66171df36e95d23e.tar.gz
frameworks_av-2e8186a258c934798129847f66171df36e95d23e.tar.bz2
Merge "Fix initial audio glitch on startup" into lmp-dev
Diffstat (limited to 'services')
-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 e17aa98..e3daccc 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