Enum ndk::audio::AudioInputPreset
source · #[non_exhaustive]#[repr(i32)]pub enum AudioInputPreset {
Generic = 1,
Camcorder = 5,
VoiceRecognition = 6,
VoiceCommunication = 7,
Unprocessed = 9,
VoicePerformance = 10,
}
audio
and api-level-28
only.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.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
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
api-level-29
only.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.
Trait Implementations§
source§impl Clone for AudioInputPreset
impl Clone for AudioInputPreset
source§fn clone(&self) -> AudioInputPreset
fn clone(&self) -> AudioInputPreset
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for AudioInputPreset
impl Debug for AudioInputPreset
source§impl From<AudioInputPreset> for i32
impl From<AudioInputPreset> for i32
source§fn from(enum_value: AudioInputPreset) -> Self
fn from(enum_value: AudioInputPreset) -> Self
source§impl From<i32> for AudioInputPreset
impl From<i32> for AudioInputPreset
source§impl FromPrimitive for AudioInputPreset
impl FromPrimitive for AudioInputPreset
source§impl PartialEq for AudioInputPreset
impl PartialEq for AudioInputPreset
source§fn eq(&self, other: &AudioInputPreset) -> bool
fn eq(&self, other: &AudioInputPreset) -> bool
self
and other
values to be equal, and is used
by ==
.