diff options
author | Mike Lockwood <lockwood@google.com> | 2014-10-07 14:47:26 -0700 |
---|---|---|
committer | Mike Lockwood <lockwood@google.com> | 2014-10-07 14:47:26 -0700 |
commit | 28138587ef4ec3da71c5275ac60ffae03ca69fce (patch) | |
tree | 9415c44728f407aaf58bbb74c43e2883acabad1c /cmds | |
parent | 41bb3455e44dc8fde4569bbfd56fa20c6da8a27d (diff) | |
download | frameworks_base-28138587ef4ec3da71c5275ac60ffae03ca69fce.zip frameworks_base-28138587ef4ec3da71c5275ac60ffae03ca69fce.tar.gz frameworks_base-28138587ef4ec3da71c5275ac60ffae03ca69fce.tar.bz2 |
bootanimation: Tweak parameters for pcm_open for playing boot sounds.
Set start_threshold and avail_min to 1/4th period size and stop_threshold to INT_MAX
Change-Id: I0a3aac18533709daa86a024cdd6a32086410723a
Diffstat (limited to 'cmds')
-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; |