Enum ndk::aaudio::AAudioInputPreset [−][src]
#[repr(u32)] pub enum AAudioInputPreset { Generic, Camcorder, VoiceRecognition, VoiceCommunication, Unprocessed, VoicePerformance, }
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
Use this preset when other presets do not apply.
Use this preset when recording video.
Use this preset when doing speech recognition.
Use this preset when doing telephony or voice messaging.
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.
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
Performs the conversion.
type Error = TryFromPrimitiveError<Self>
type Error = TryFromPrimitiveError<Self>
The type returned in the event of a conversion error.
Performs the conversion.
Auto Trait Implementations
impl RefUnwindSafe for AAudioInputPreset
impl Send for AAudioInputPreset
impl Sync for AAudioInputPreset
impl Unpin for AAudioInputPreset
impl UnwindSafe for AAudioInputPreset
Blanket Implementations
Mutably borrows from an owned value. Read more