pub enum InputPreset {
Generic = 1,
Camcorder = 5,
VoiceRecognition = 6,
VoiceCommunication = 7,
Unprocessed = 9,
VoicePerformance = 10,
}Expand description
Defines the audio source. An audio source defines both a default physical source of audio signal, and a recording configuration.
Note that these match the equivalent values in MediaRecorder.AudioSource in the Android Java API.
Added in API level 28.
Variants§
Generic = 1
Use this preset when other presets do not apply.
Camcorder = 5
Use this preset when recording video.
VoiceRecognition = 6
Use this preset when doing speech recognition.
VoiceCommunication = 7
Use this preset when doing telephony or voice messaging.
Unprocessed = 9
Use this preset to obtain an input with no effects. Note that this input will not have automatic gain control so the recorded volume may be very low.
VoicePerformance = 10
Use this preset for capturing audio meant to be processed in real time and played back for live performance (e.g karaoke). The capture path will minimize latency and coupling with playback path. Available since API level 29.
Trait Implementations§
Source§impl Clone for InputPreset
impl Clone for InputPreset
Source§fn clone(&self) -> InputPreset
fn clone(&self) -> InputPreset
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more