diff options
Diffstat (limited to 'include')
| -rw-r--r-- | include/hardware_legacy/AudioPolicyManagerBase.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/hardware_legacy/AudioPolicyManagerBase.h b/include/hardware_legacy/AudioPolicyManagerBase.h index 07e52f7..f110c20 100644 --- a/include/hardware_legacy/AudioPolicyManagerBase.h +++ b/include/hardware_legacy/AudioPolicyManagerBase.h @@ -345,7 +345,9 @@ protected: virtual audio_devices_t getDeviceForInputSource(int inputSource); // return io handle of active input or 0 if no input is active - audio_io_handle_t getActiveInput(); + // Only considers inputs from physical devices (e.g. main mic, headset mic) when + // ignoreVirtualInputs is true. + audio_io_handle_t getActiveInput(bool ignoreVirtualInputs = true); // initialize volume curves for each strategy and device category void initializeVolumeCurves(); @@ -559,6 +561,7 @@ private: // updates device caching and output for streams that can influence the // routing of notifications void handleNotificationRoutingForStream(AudioSystem::stream_type stream); + static bool isVirtualInputDevice(audio_devices_t device); }; }; |
