summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorMike Lockwood <lockwood@google.com>2014-10-08 22:49:14 +0000
committerAndroid Git Automerger <android-git-automerger@android.com>2014-10-08 22:49:14 +0000
commit22466960eef6263cd88965005b661a6f55f79439 (patch)
tree5b9d4e6791eba4ceea7dd88f3d92c336c1690931 /cmds
parente00df1dc08e4722d2f3742d9fc0c205c52683289 (diff)
parent3910f53c5ebccbe64ab768591dc7c377f1eb0153 (diff)
downloadframeworks_base-22466960eef6263cd88965005b661a6f55f79439.zip
frameworks_base-22466960eef6263cd88965005b661a6f55f79439.tar.gz
frameworks_base-22466960eef6263cd88965005b661a6f55f79439.tar.bz2
am 3910f53c: Merge "bootanimation: Tweak parameters for pcm_open for playing boot sounds." into lmp-dev
* commit '3910f53c5ebccbe64ab768591dc7c377f1eb0153': bootanimation: Tweak parameters for pcm_open for playing boot sounds.
Diffstat (limited to 'cmds')
-rw-r--r--cmds/bootanimation/AudioPlayer.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/bootanimation/AudioPlayer.cpp b/cmds/bootanimation/AudioPlayer.cpp
index a2ee7ea..471b77f 100644
--- 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;