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

Commit 23ed032c authored by Phil Burk's avatar Phil Burk Committed by android-build-merger
Browse files

Merge "aaudio: fix mixer volume" into oc-dr1-dev am: 097da17b

am: 1911951a

Change-Id: Ia360ba971e9f353aa9220b0cb5ccd0c9293c31d1
parents 7b2ebfe7 1911951a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -81,7 +81,7 @@ void *AAudioServiceEndpointPlay::callbackLoop() {
            std::lock_guard <std::mutex> lock(mLockStreams);
            for (sp<AAudioServiceStreamShared> sharedStream : mRunningStreams) {
                FifoBuffer *fifo = sharedStream->getDataFifoBuffer();
                float volume = 0.5; // TODO get from system
                float volume = 1.0; // to match legacy volume
                bool underflowed = mMixer.mix(fifo, volume);
                underflowCount += underflowed ? 1 : 0;
                // TODO log underflows in each stream