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

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

Merge "aaudio: fix mixer volume to match AudioTrack" into oc-dev

am: da6b9eaf

Change-Id: Ibec78641ef62c0e02b38294c9aabbc4429e858a3
parents 8eed27be da6b9eaf
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -141,7 +141,7 @@ void *AAudioServiceEndpoint::callbackLoop() {
            std::lock_guard<std::mutex> lock(mLockStreams);
            for(AAudioServiceStreamShared *sharedStream : mRunningStreams) {
                FifoBuffer *fifo = sharedStream->getDataFifoBuffer();
                float volume = 0.5; // TODO get from system
                const float volume = 1.0f; // to match the perceived volume from AudioTrack
                bool underflowed = mMixer.mix(fifo, volume);
                underflowCount += underflowed ? 1 : 0;
                // TODO log underflows in each stream