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

Commit 77cbebd8 authored by Dean Wheatley's avatar Dean Wheatley Committed by Mikhail Naganov
Browse files

Warn output buffer size not multiple of 16 frames only for mixer threads

Test: make
Change-Id: I0b1aec787c1052e2ee7bff09fe66a7fd3d1126ce
parent fddd9faf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2600,7 +2600,7 @@ void AudioFlinger::PlaybackThread::readOutputParameters_l()
    LOG_ALWAYS_FATAL_IF(result != OK,
            "Error when retrieving output stream buffer size: %d", result);
    mFrameCount = mBufferSize / mFrameSize;
    if (mFrameCount & 15) {
    if ((mType == MIXER || mType == DUPLICATING) && (mFrameCount & 15)) {
        ALOGW("HAL output buffer size is %zu frames but AudioMixer requires multiples of 16 frames",
                mFrameCount);
    }