diff options
author | François Gaffie <francois.gaffie@intel.com> | 2015-03-18 16:55:35 +0100 |
---|---|---|
committer | Jean-Michel Trivi <jmtrivi@google.com> | 2015-04-01 10:19:16 -0700 |
commit | ad3183e2d4cecd02f6261270a7ea1c68be0efa0f (patch) | |
tree | 5c08be8ee10c2525c0df9dc42529d5fae0240b74 /services/audiopolicy/managerdefault/AudioPolicyManager.h | |
parent | 4de725a32a825bd26d9fc0ec6901ffffa92778e1 (diff) | |
download | frameworks_av-ad3183e2d4cecd02f6261270a7ea1c68be0efa0f.zip frameworks_av-ad3183e2d4cecd02f6261270a7ea1c68be0efa0f.tar.gz frameworks_av-ad3183e2d4cecd02f6261270a7ea1c68be0efa0f.tar.bz2 |
Audio Policy Refactor: reorganise headers inclusion
This patch reoganises the headers inclusion in order to prepare
the split of managerdefault into a manager and a separated lib
of pillar policy elements.
It also moves back the isStrategyActive to the manager to avoid
any dependancies from this pillars to the manager.
Change-Id: I1a35c45d86db7a3878a40dc7d6858dfea37c5ac9
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 61ea6f2..8308d54 100644 --- a/services/audiopolicy/managerdefault/AudioPolicyManager.h +++ b/services/audiopolicy/managerdefault/AudioPolicyManager.h @@ -14,6 +14,7 @@ * limitations under the License. */ +#pragma once #include <stdint.h> #include <sys/types.h> @@ -61,9 +62,6 @@ namespace android { // Can be overridden by the audio.offload.min.duration.secs property #define OFFLOAD_DEFAULT_MIN_DURATION_SECS 60 -#define MAX_MIXER_SAMPLING_RATE 48000 -#define MAX_MIXER_CHANNEL_COUNT 8 - // ---------------------------------------------------------------------------- // AudioPolicyManager implements audio policy manager behavior common to all platforms. // ---------------------------------------------------------------------------- @@ -555,6 +553,9 @@ private: sp<DeviceDescriptor> getDeviceDescriptor(const audio_devices_t device, const char *device_address, const char *device_name); + + bool isStrategyActive(const sp<AudioOutputDescriptor> outputDesc, routing_strategy strategy, + uint32_t inPastMs = 0, nsecs_t sysTime = 0) const; }; }; |