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

Commit 9f5b6aaf authored by Mikhail Naganov's avatar Mikhail Naganov Committed by Android (Google) Code Review
Browse files

Merge "audiohal: Support stateful downmixer effects" into oc-dev

parents d4fc4683 c8c6a81f
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -30,7 +30,10 @@ bool AudioBufferManager::wrap(const AudioBuffer& buffer, sp<AudioBufferWrapper>*
    ssize_t idx = mBuffers.indexOfKey(buffer.id);
    if (idx >= 0) {
        *wrapper = mBuffers[idx].promote();
        if (*wrapper != nullptr) return true;
        if (*wrapper != nullptr) {
            (*wrapper)->getHalBuffer()->frameCount = buffer.frameCount;
            return true;
        }
        mBuffers.removeItemsAt(idx);
    }
    // Need to create and init a new AudioBufferWrapper.