From 000bb51ca507645f3aa4ccfcbbb8859e8d539629 Mon Sep 17 00:00:00 2001 From: Eric Laurent Date: Sat, 12 Oct 2013 16:29:39 -0700 Subject: audio policy: fix gapless playback when effects enabled Do not allow offloading if one non offloadable effect is enabled. This prevents from creating an offloaded track and tearing it down immediately after start when audioflinger detects there is an active non offloadable effect. Not doing so breaks gapless playback because AwesomePlayer will always be able to open an offloaded track which will not be compatible with the previous PCM track and Audiosink::open() will not recycle it. Bug: 11181933. Change-Id: I6d163806849d9093b9ec701ba8e8c1ccb658e3c8 --- include/hardware_legacy/AudioPolicyManagerBase.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h index 482ea86..5fea77a 100644 --- a/include/hardware_legacy/AudioPolicyManagerBase.h +++ b/include/hardware_legacy/AudioPolicyManagerBase.h @@ -491,6 +491,8 @@ protected: audio_io_handle_t selectOutputForEffects(const SortedVector& outputs); + bool isNonOffloadableEffectEnabled(); + // // Audio policy configuration file parsing (audio_policy.conf) // -- cgit v1.1