diff options
author | Jean-Michel Trivi <jmtrivi@google.com> | 2012-09-10 18:58:27 -0700 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2012-09-10 18:58:27 -0700 |
commit | cff7137411e737dfb783013c23841ccb335e5f5b (patch) | |
tree | 08b899f1ab738d7e0ed11716ff7b786440a4cd8a /services/audioflinger/FastMixer.cpp | |
parent | d6de933cfcc088d7c80e26bcca4d3b20b1573225 (diff) | |
download | frameworks_av-cff7137411e737dfb783013c23841ccb335e5f5b.zip frameworks_av-cff7137411e737dfb783013c23841ccb335e5f5b.tar.gz frameworks_av-cff7137411e737dfb783013c23841ccb335e5f5b.tar.bz2 |
Communicate audio session ID to downmixer
The audio downmixer effect might need the audio session Id, pass it
from the track creation in AudioFlinger to the downmix effect
creation in AudioMixer.
Change-Id: I5e29540542ae89cf4a0cdb537b3e67f04442a20a
Diffstat (limited to 'services/audioflinger/FastMixer.cpp')
-rw-r--r-- | services/audioflinger/FastMixer.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/services/audioflinger/FastMixer.cpp b/services/audioflinger/FastMixer.cpp index cdc27a2..13003d9 100644 --- a/services/audioflinger/FastMixer.cpp +++ b/services/audioflinger/FastMixer.cpp @@ -281,8 +281,9 @@ bool FastMixer::threadLoop() AudioBufferProvider *bufferProvider = fastTrack->mBufferProvider; ALOG_ASSERT(bufferProvider != NULL && fastTrackNames[i] == -1); if (mixer != NULL) { - // calling getTrackName with default channel mask - name = mixer->getTrackName(AUDIO_CHANNEL_OUT_STEREO); + // calling getTrackName with default channel mask and a random invalid + // sessionId (no effects here) + name = mixer->getTrackName(AUDIO_CHANNEL_OUT_STEREO, -555); ALOG_ASSERT(name >= 0); fastTrackNames[i] = name; mixer->setBufferProvider(name, bufferProvider); |