ANDROID 8.1 多个apk同时录音

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

你可能感兴趣的:(android)