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

Commit 520ba656 authored by Mingming Yin's avatar Mingming Yin Committed by Steve Kondik
Browse files

audio: apply volume on DirectOutput streams

- Call stream->set_volume to apply volume on
  particular stream of DirectOutputs

Change-Id: I98e3b856ee508d407f893afad66caade5eda3e4a
CRs-Fixed: 445953
parent 74f0b6d2
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -6247,6 +6247,7 @@ void AudioFlinger::DirectAudioTrack::mute(bool muted) {
void AudioFlinger::DirectAudioTrack::setVolume(float left, float right) {
    mOutputDesc->mVolumeLeft = left;
    mOutputDesc->mVolumeRight = right;
    mOutputDesc->stream->set_volume(mOutputDesc->stream,left,right);
}

int64_t AudioFlinger::DirectAudioTrack::getTimeStamp() {