summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMingming Yin <mingming@codeaurora.org>2013-02-06 19:33:23 -0800
committerSteve Kondik <shade@chemlab.org>2013-02-16 07:14:28 -0800
commit520ba656d8f8d4a2fd54a2c4fd98bab2a914cdd1 (patch)
treec0796358c03634771da2f55c0bd9f6c0390830a1
parent74f0b6d28fa63ca4d07a35d2bf02088fa390e5a8 (diff)
downloadframeworks_av-520ba656d8f8d4a2fd54a2c4fd98bab2a914cdd1.zip
frameworks_av-520ba656d8f8d4a2fd54a2c4fd98bab2a914cdd1.tar.gz
frameworks_av-520ba656d8f8d4a2fd54a2c4fd98bab2a914cdd1.tar.bz2
audio: apply volume on DirectOutput streams
- Call stream->set_volume to apply volume on particular stream of DirectOutputs Change-Id: I98e3b856ee508d407f893afad66caade5eda3e4a CRs-Fixed: 445953
-rw-r--r--services/audioflinger/AudioFlinger.cpp1
1 files changed, 1 insertions, 0 deletions
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() {