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

Commit 1911951a 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

Change-Id: I32d35f0b0d5ec43950362def009f3e71f18c5cdc
parents cbaf5e98 097da17b
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