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

Commit 968e85e3 authored by Phil Burk's avatar Phil Burk
Browse files

aaudio: fix mixer volume

Bug: 63176151
Test: play write_sine.cpp in both legacy and MMAP modes
Change-Id: If5fb61fe959dbc361ff8f95ca3d743e877800163
parent e27d3a43
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