[][src]Enum aaudio::InputPreset

pub enum InputPreset {
    Generic,
    Camcorder,
    VoiceRecognition,
    VoiceCommunication,
    Unprocessed,
    VoicePerformance,
}

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

Use this preset when other presets do not apply.

Camcorder

Use this preset when recording video.

VoiceRecognition

Use this preset when doing speech recognition.

VoiceCommunication

Use this preset when doing telephony or voice messaging.

Unprocessed

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

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

impl Clone for InputPreset[src]

impl Copy for InputPreset[src]

impl Debug for InputPreset[src]

impl Eq for InputPreset[src]

impl PartialEq<InputPreset> for InputPreset[src]

impl StructuralEq for InputPreset[src]

impl StructuralPartialEq for InputPreset[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.