From 5baf2af52cd186633b7173196c1e4a4cd3435f22 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Thu, 12 Sep 2013 17:37:00 -0700 Subject: more support for audio effect offload Offloading of audio effects is now enabled for offloaded output threads. If an effect not supporting offload is enabled, the AudioTrack is invalidated so that it can be recreated in PCM mode. Fix some issues in effect proxy related to handling of effect commands to offloaded and non offloaded effects. Also fixed a bug on capture index in software Visualizer effect. Bug: 8174034. Change-Id: Ib23d3c2d5a652361b0aaec7faee09102f2b18fce --- services/audioflinger/AudioFlinger.h | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'services/audioflinger/AudioFlinger.h') diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index 0992308..b41d480 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -466,9 +466,8 @@ private: void removeClient_l(pid_t pid); void removeNotificationClient(pid_t pid); - //TODO: remove when effect offload is implemented - bool isGlobalEffectEnabled_l(); - void onGlobalEffectEnable(); + bool isNonOffloadableGlobalEffectEnabled_l(); + void onNonOffloadableGlobalEffectEnable(); class AudioHwDevice { public: @@ -645,7 +644,6 @@ public: private: bool mIsLowRamDevice; bool mIsDeviceTypeKnown; - //TODO: remove when effect offload is implemented nsecs_t mGlobalEffectEnableTime; // when a global effect was last enabled }; -- cgit v1.1