diff options
author | François Gaffie <francois.gaffie@intel.com> | 2015-03-19 12:10:59 +0100 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2015-04-01 10:22:42 -0700 |
commit | dfd7409c1b708f6c429aa43722ca8493a91d8df0 (patch) | |
tree | 527972dbd2a5ad014137b57128ca5100d7ca07a2 /services/audiopolicy/managerdefault/AudioPolicyManager.h | |
parent | df37269852ea92bafd939fe793209d0581c4a574 (diff) | |
download | frameworks_av-dfd7409c1b708f6c429aa43722ca8493a91d8df0.zip frameworks_av-dfd7409c1b708f6c429aa43722ca8493a91d8df0.tar.gz frameworks_av-dfd7409c1b708f6c429aa43722ca8493a91d8df0.tar.bz2 |
Create StreamDescriptor and associated collection within common
Create StreamDescriptor and associated collection within common
common policy pillar elements.
It moves the code from managerdefault and creates helpers function within
the collection.
It also split the AudioGain in a common volume header and AudioGain class.
Change-Id: I1bb80e4219506f8c9042367085db328d317cb668
Signed-off-by: François Gaffie <francois.gaffie@intel.com>
Diffstat (limited to 'services/audiopolicy/managerdefault/AudioPolicyManager.h')
-rw-r--r-- | services/audiopolicy/managerdefault/AudioPolicyManager.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/services/audiopolicy/managerdefault/AudioPolicyManager.h b/services/audiopolicy/managerdefault/AudioPolicyManager.h index b881aaa..d7301f5 100644 --- a/services/audiopolicy/managerdefault/AudioPolicyManager.h +++ b/services/audiopolicy/managerdefault/AudioPolicyManager.h @@ -39,6 +39,7 @@ #include <AudioPolicyMix.h> #include <EffectDescriptor.h> #include <SoundTriggerSession.h> +#include <StreamDescriptor.h> namespace android { @@ -435,10 +436,10 @@ protected: int mPhoneState; // current phone state audio_policy_forced_cfg_t mForceUse[AUDIO_POLICY_FORCE_USE_CNT]; // current forced use configuration - StreamDescriptor mStreams[AUDIO_STREAM_CNT]; // stream descriptors for volume control - bool mLimitRingtoneVolume; // limit ringtone volume to music volume if headset connected + StreamDescriptorCollection mStreams; // stream descriptors for volume control + bool mLimitRingtoneVolume; // limit ringtone volume to music volume if headset connected audio_devices_t mDeviceForStrategy[NUM_STRATEGIES]; - float mLastVoiceVolume; // last voice volume value sent to audio HAL + float mLastVoiceVolume; // last voice volume value sent to audio HAL EffectDescriptorCollection mEffects; // list of registered audio effects bool mA2dpSuspended; // true if A2DP output is suspended |