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

Commit 4fcff885 authored by Eric Laurent's avatar Eric Laurent Committed by Android Git Automerger
Browse files

am 8d2d4932: audioflinger: fix duplicating track sampling rate

* commit '8d2d4932':
  audioflinger: fix duplicating track sampling rate
parents 0fb06b85 8d2d4932
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -1415,6 +1415,9 @@ AudioFlinger::PlaybackThread::OutputTrack::OutputTrack(
        // since client and server are in the same process,
        // the buffer has the same virtual address on both sides
        mClientProxy = new AudioTrackClientProxy(mCblk, mBuffer, mFrameCount, mFrameSize);
        mClientProxy->setVolumeLR((uint32_t(uint16_t(0x1000)) << 16) | uint16_t(0x1000));
        mClientProxy->setSendLevel(0.0);
        mClientProxy->setSampleRate(sampleRate);
    } else {
        ALOGW("Error creating output track on thread %p", playbackThread);
    }