欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

ANDROID 8.1 多个apk同时录音

程序员文章站 2022-03-25 08:13:12
多app 录音可以用这个,工作量比较小~/3326/frameworks/av/services/audiopolicy/managerdefault$ git diff ./diff --git a/services/audiopolicy/managerdefault/AudioPolicyManager.cpp b/services/audiopolicy/managerdefault/AudioPolicyManager.cppindex e947c8be0..8c4c8cfff 1007...

多app 录音可以用这个,工作量比较小

~/3326/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;
     for (size_t i = 0; i < mInputs.size(); i++) {

本文地址:https://blog.csdn.net/u013463707/article/details/107940352

相关标签: android