diff options
| author | 2019-04-03 14:22:40 -0700 | |
|---|---|---|
| committer | 2019-04-08 19:27:36 +0000 | |
| commit | 4d4a96f1285e2498173372e645a9a27057fa495d (patch) | |
| tree | 58d572382bc2c5097eb7a253232c844c1770bd39 | |
| parent | 4c916ecf7c1063e009fab6d081ebfece670a7855 (diff) | |
Allows constructing ECHO REFERENCE AudioRecord
Bug: 129882605
Test: dumpsys media.audio_policy
Change-Id: I9eb7f64c11f0bd2bcbcf1e381337888d128fc9aa
| -rw-r--r-- | media/java/android/media/AudioRecord.java | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/media/java/android/media/AudioRecord.java b/media/java/android/media/AudioRecord.java index 2dd7f0fcd12b..eeb7655abff9 100644 --- a/media/java/android/media/AudioRecord.java +++ b/media/java/android/media/AudioRecord.java @@ -769,6 +769,7 @@ public class AudioRecord implements AudioRouting, MicrophoneDirection, if ( (audioSource < MediaRecorder.AudioSource.DEFAULT) || ((audioSource > MediaRecorder.getAudioSourceMax()) && (audioSource != MediaRecorder.AudioSource.RADIO_TUNER) && + (audioSource != MediaRecorder.AudioSource.ECHO_REFERENCE) && (audioSource != MediaRecorder.AudioSource.HOTWORD)) ) { throw new IllegalArgumentException("Invalid audio source " + audioSource); } |