From 813e2a74853bde19e37d878c596a044b3f299efc Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Sat, 31 Aug 2013 12:59:48 -0700 Subject: audioflinger: no effects on offloaded tracks Invalidate offloaded tracks when an effect is enabled so that the track is recreated in PCM mode and the effect can be applied. This is temporary until effect offloading is implemented. Bug: 8174034. Change-Id: I77b8b54a10db6cb8334be76d863ea7e720eaad09 --- services/audioflinger/AudioFlinger.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'services/audioflinger/AudioFlinger.h') diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h index 5df04f4..0992308 100644 --- a/services/audioflinger/AudioFlinger.h +++ b/services/audioflinger/AudioFlinger.h @@ -466,6 +466,10 @@ private: void removeClient_l(pid_t pid); void removeNotificationClient(pid_t pid); + //TODO: remove when effect offload is implemented + bool isGlobalEffectEnabled_l(); + void onGlobalEffectEnable(); + class AudioHwDevice { public: enum Flags { @@ -641,6 +645,8 @@ public: private: bool mIsLowRamDevice; bool mIsDeviceTypeKnown; + //TODO: remove when effect offload is implemented + nsecs_t mGlobalEffectEnableTime; // when a global effect was last enabled }; #undef INCLUDING_FROM_AUDIOFLINGER_H -- cgit v1.1