Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 22466960 authored by Mike Lockwood's avatar Mike Lockwood Committed by Android Git Automerger
Browse files

am 3910f53c: Merge "bootanimation: Tweak parameters for pcm_open for playing...

am 3910f53c: Merge "bootanimation: Tweak parameters for pcm_open for playing boot sounds." into lmp-dev

* commit '3910f53c':
  bootanimation: Tweak parameters for pcm_open for playing boot sounds.
parents e00df1dc 3910f53c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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;