summaryrefslogtreecommitdiffstats
path: root/services/audioflinger/AudioPolicyService.h
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-03-07 16:49:22 -0800
committerGlenn Kasten <gkasten@google.com>2012-03-08 16:30:00 -0800
commit81872a2ce65653ae980621ba2907da56a83ba9a7 (patch)
treebfddaac17716089daa023ef3a225d04ba01a359a /services/audioflinger/AudioPolicyService.h
parentf3c2e3bd65449b413c378219e08c71bf744cfbf3 (diff)
downloadframeworks_av-81872a2ce65653ae980621ba2907da56a83ba9a7.zip
frameworks_av-81872a2ce65653ae980621ba2907da56a83ba9a7.tar.gz
frameworks_av-81872a2ce65653ae980621ba2907da56a83ba9a7.tar.bz2
AudioPolicyService InputDesc minor cleanup
Add a non-default constructor to set the mSessionId, and make mSessionId const. Remove explicit clear on mEffects - it is automatically cleared by the destructor. AudioPolicyService::setPreProcessorEnabled: - parameter is const * - use an alias instead of making a Vector copy Destructor doesn't need to be virtual since there are no subclasses. Change-Id: Ibc3c3bea8259839430b1cf5356186c7d96f1082f
Diffstat (limited to 'services/audioflinger/AudioPolicyService.h')
-rw-r--r--services/audioflinger/AudioPolicyService.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/services/audioflinger/AudioPolicyService.h b/services/audioflinger/AudioPolicyService.h
index 962c917..106bf6a 100644
--- a/services/audioflinger/AudioPolicyService.h
+++ b/services/audioflinger/AudioPolicyService.h
@@ -279,15 +279,15 @@ private:
class InputDesc {
public:
- InputDesc() {}
- virtual ~InputDesc() {}
- int mSessionId;
+ InputDesc(int session) : mSessionId(session) {}
+ /*virtual*/ ~InputDesc() {}
+ const int mSessionId;
Vector< sp<AudioEffect> >mEffects;
};
static const char * const kInputSourceNames[AUDIO_SOURCE_CNT -1];
- void setPreProcessorEnabled(InputDesc *inputDesc, bool enabled);
+ void setPreProcessorEnabled(const InputDesc *inputDesc, bool enabled);
status_t loadPreProcessorConfig(const char *path);
status_t loadEffects(cnode *root, Vector <EffectDesc *>& effects);
EffectDesc *loadEffect(cnode *root);