summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/Tracks.cpp
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2013-04-25 12:56:18 -0700
committerEric Laurent <elaurent@google.com>2013-04-25 12:56:18 -0700
commit8d2d4932b96632e9eb3af4a3d4000192ef603960 (patch)
tree98de74d897c69756c049926296908a694b2acb19 /services/audioflinger/Tracks.cpp
parent7f86d98317843838c4a5248c733bf95f9574fcab (diff)
downloadframeworks_av-8d2d4932b96632e9eb3af4a3d4000192ef603960.zip
frameworks_av-8d2d4932b96632e9eb3af4a3d4000192ef603960.tar.gz
frameworks_av-8d2d4932b96632e9eb3af4a3d4000192ef603960.tar.bz2
audioflinger: fix duplicating track sampling rate
Add missing initialization of client proxy sampling rate and volumes in OutputTrack constructor. Bug: 8687522 Change-Id: I813e700315bb97083a63dd32279f1998ac775483
Diffstat (limited to 'services/audioflinger/Tracks.cpp')
-rw-r--r--services/audioflinger/Tracks.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/audioflinger/Tracks.cpp b/services/audioflinger/Tracks.cpp
index a6ab4f8..5ac3129 100644
--- a/services/audioflinger/Tracks.cpp
+++ b/services/audioflinger/Tracks.cpp
@@ -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);
}