AudioFlinger: Extract PatchCommandThread class
Test: atest audiorecord_tests audiotrack_tests audiorouting_tests trackplayerbase_tests audiosystem_tests
Test: atest AAudioTests AudioTrackOffloadTest
Test: atest AudioTrackTest AudioRecordTest
Test: YouTube Camera
Bug: 288339104
Change-Id: I7ef21750a59aa74c4f9104fc73f536a2d3c92cda
diff --git a/services/audioflinger/AudioFlinger.h b/services/audioflinger/AudioFlinger.h
index 0202fda..1672658 100644
--- a/services/audioflinger/AudioFlinger.h
+++ b/services/audioflinger/AudioFlinger.h
@@ -129,6 +129,9 @@
#include "IAfThread.h"
#include "IAfTrack.h"
+// Classes that depend on IAf* interfaces but are not cross-dependent.
+#include "PatchCommandThread.h"
+
namespace android {
class AudioMixer;
@@ -586,8 +589,6 @@
using TeePatches = std::vector<TeePatch>;
private:
-#include "PatchCommandThread.h"
-
#include "DeviceEffectManager.h"
#include "MelReporter.h"