summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioMixer.h
diff options
context:
space:
mode:
authorJean-Michel Trivi <jmtrivi@google.com>2012-09-12 15:47:07 -0700
committerJean-Michel Trivi <jmtrivi@google.com>2012-09-12 15:49:56 -0700
commitd06e132358d44f02c22527b4f463df1f58da9216 (patch)
tree26cd7f3324f6c50726ed0377f3137e38f316aab3 /services/audioflinger/AudioMixer.h
parent4b2247510410ef71718199ea028ace8609e92fdd (diff)
downloadframeworks_av-d06e132358d44f02c22527b4f463df1f58da9216.zip
frameworks_av-d06e132358d44f02c22527b4f463df1f58da9216.tar.gz
frameworks_av-d06e132358d44f02c22527b4f463df1f58da9216.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: I836873eebd6711f1048fce81cd2eb29b94f0ad0c
Diffstat (limited to 'services/audioflinger/AudioMixer.h')
-rw-r--r--services/audioflinger/AudioMixer.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/services/audioflinger/AudioMixer.h b/services/audioflinger/AudioMixer.h
index 6c80253..dc468ff 100644
--- a/services/audioflinger/AudioMixer.h
+++ b/services/audioflinger/AudioMixer.h
@@ -91,7 +91,7 @@ public:
// For all APIs with "name": TRACK0 <= name < TRACK0 + MAX_NUM_TRACKS
// Allocate a track name. Returns new track name if successful, -1 on failure.
- int getTrackName(audio_channel_mask_t channelMask);
+ int getTrackName(audio_channel_mask_t channelMask, int sessionId);
// Free an allocated track by name
void deleteTrackName(int name);
@@ -190,7 +190,9 @@ private:
DownmixerBufferProvider* downmixerBufferProvider; // 4 bytes
- int32_t padding[3];
+ int32_t sessionId;
+
+ int32_t padding[2];
// 16-byte boundary