From 520ba656d8f8d4a2fd54a2c4fd98bab2a914cdd1 Mon Sep 17 00:00:00 2001 From: Mingming Yin Date: Wed, 6 Feb 2013 19:33:23 -0800 Subject: audio: apply volume on DirectOutput streams - Call stream->set_volume to apply volume on particular stream of DirectOutputs Change-Id: I98e3b856ee508d407f893afad66caade5eda3e4a CRs-Fixed: 445953 --- services/audioflinger/AudioFlinger.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'services/audioflinger') diff --git a/services/audioflinger/AudioFlinger.cpp b/services/audioflinger/AudioFlinger.cpp index bcb9756..0a0529a 100644 --- a/services/audioflinger/AudioFlinger.cpp +++ b/services/audioflinger/AudioFlinger.cpp @@ -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() { -- cgit v1.1