OSDN Git Service
(root)
/
android-x86
/
frameworks-base.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41bb345
)
bootanimation: Tweak parameters for pcm_open for playing boot sounds.
author
Mike Lockwood
<lockwood@google.com>
Tue, 7 Oct 2014 21:47:26 +0000
(14:47 -0700)
committer
Mike Lockwood
<lockwood@google.com>
Tue, 7 Oct 2014 21:47:26 +0000
(14:47 -0700)
Set start_threshold and avail_min to 1/4th period size and stop_threshold to INT_MAX
Change-Id: I0a3aac18533709daa86a024cdd6a32086410723a
cmds/bootanimation/AudioPlayer.cpp
patch
|
blob
|
history
diff --git
a/cmds/bootanimation/AudioPlayer.cpp
b/cmds/bootanimation/AudioPlayer.cpp
index
a2ee7ea
..
471b77f
100644
(file)
--- a/
cmds/bootanimation/AudioPlayer.cpp
+++ b/
cmds/bootanimation/AudioPlayer.cpp
@@
-272,6
+272,9
@@
bool AudioPlayer::threadLoop()
config.rate = chunkFmt->sample_rate;
config.period_size = mPeriodSize;
config.period_count = mPeriodCount;
+ config.start_threshold = mPeriodSize / 4;
+ config.stop_threshold = INT_MAX;
+ config.avail_min = config.start_threshold;
if (chunkFmt->bits_per_sample != 16) {
ALOGE("only 16 bit WAV files are supported");
goto exit;