diff options
author | Mike Lockwood <lockwood@google.com> | 2014-10-09 03:03:09 +0000 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2014-10-09 03:03:09 +0000 |
commit | cf61b3f6e653749b3d04eb531d76918e88eb98bd (patch) | |
tree | 724682c4be2cc19f5b5b2e60fd3628f2dc435edf | |
parent | eeec4b9ebc15545e59985eab29385157cbbd8e9f (diff) | |
parent | 3910f53c5ebccbe64ab768591dc7c377f1eb0153 (diff) | |
download | frameworks_base-cf61b3f6e653749b3d04eb531d76918e88eb98bd.zip frameworks_base-cf61b3f6e653749b3d04eb531d76918e88eb98bd.tar.gz frameworks_base-cf61b3f6e653749b3d04eb531d76918e88eb98bd.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.
-rw-r--r-- | cmds/bootanimation/AudioPlayer.cpp | 3 |
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; |