OSDN Git Service
(root)
/
android-x86
/
frameworks-av.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7b24ee3
)
Fix initial audio glitch on startup
author
Andy Hung
<hunga@google.com>
Thu, 17 Jul 2014 21:00:07 +0000
(14:00 -0700)
committer
The Android Automerger
<android-build@google.com>
Thu, 17 Jul 2014 22:04:59 +0000
(15:04 -0700)
Also happens when restarting AudioFlinger.
Bug:
16322824
Change-Id: I382b20174cb0639e04316130141f2094d7dd0cb3
services/audioflinger/Threads.cpp
patch
|
blob
|
history
diff --git
a/services/audioflinger/Threads.cpp
b/services/audioflinger/Threads.cpp
index
0f01b02
..
a396aaf
100755
(executable)
--- 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 * m
ChannelCount * sizeof(int16_t)
);
+ memset(mSinkBuffer, 0, mNormalFrameCount * m
FrameSize
);
}
// if any fast tracks, then status is ready