RK SDK:安卓7.1/8.1/9.0
默认情况下,安卓只支持单个录音app使用mic,如果需要多个录音app能同时使用mic,可加下述patch。
修改方案1:
文件:frameworks/av/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
~/frameworks/av/services/audiopolicy/managerdefault$ git diff ./
diff --git a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
index e947c8be0..8c4c8cfff 100755
--- a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
+++ b/services/audiopolicy/managerdefault/AudioPolicyManager.cpp
@@ -1760,7 +1760,7 @@ audio_io_handle_t AudioPolicyManager::getInputForDevice(audio_devices_t device,
policyMix, mpClientInterface);
// FIXME: disable concurrent capture until UI is ready
-#if 0
+#if 1
// reuse an open input if possible
sp<AudioInputDescriptor> reusedInputDesc;