Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4d4a96f1 authored by Hongwei Wang's avatar Hongwei Wang
Browse files

Allows constructing ECHO REFERENCE AudioRecord

Bug: 129882605
Test: dumpsys media.audio_policy
Change-Id: I9eb7f64c11f0bd2bcbcf1e381337888d128fc9aa
parent 4c916ecf
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);
        }