summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioFlinger.h
diff options
context:
space:
mode:
authorEric Laurent <elaurent@google.com>2012-08-31 17:44:06 -0700
committerEric Laurent <elaurent@google.com>2012-08-31 18:44:28 -0700
commit57b2dd1e78af53115985f18d31ec5421c9da947e (patch)
tree5126e9e885cbd74e57978b1d5ecfa9c29d61c510 /services/audioflinger/AudioFlinger.h
parent092fe44abd787fcb4377d90c63f2aa7120a4d267 (diff)
downloadframeworks_av-57b2dd1e78af53115985f18d31ec5421c9da947e.zip
frameworks_av-57b2dd1e78af53115985f18d31ec5421c9da947e.tar.gz
frameworks_av-57b2dd1e78af53115985f18d31ec5421c9da947e.tar.bz2
AudioFlinger: send audio source to audio effects
Added support for EFFECT_CMD_SET_AUDIO_SOURCE audio effect command to inform preprocessings of current audio source selection for capture. Change-Id: Ib2418a9aa8114e8457fe828ecd43b230ed86cdd6
Diffstat (limited to 'services/audioflinger/AudioFlinger.h')
-rw-r--r--services/audioflinger/AudioFlinger.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index 4723cd9..0fad7c7 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -674,6 +674,7 @@ private:
bool mStandby; // Whether thread is currently in standby.
audio_devices_t mDevice; // output device for PlaybackThread
// input + output devices for RecordThread
+ audio_source_t mAudioSource; // (see audio.h, audio_source_t)
const audio_io_handle_t mId;
Vector< sp<EffectChain> > mEffectChains;
@@ -1606,6 +1607,7 @@ private:
status_t setDevice(audio_devices_t device);
status_t setVolume(uint32_t *left, uint32_t *right, bool controller);
status_t setMode(audio_mode_t mode);
+ status_t setAudioSource(audio_source_t source);
status_t start();
status_t stop();
void setSuspended(bool suspended);
@@ -1768,6 +1770,7 @@ mutable Mutex mLock; // mutex for process, commands and handl
bool setVolume_l(uint32_t *left, uint32_t *right);
void setDevice_l(audio_devices_t device);
void setMode_l(audio_mode_t mode);
+ void setAudioSource_l(audio_source_t source);
void setInBuffer(int16_t *buffer, bool ownsBuffer = false) {
mInBuffer = buffer;