[][src]Function aaudio_sys::AAudioStreamBuilder_setInputPreset

pub unsafe extern "C" fn AAudioStreamBuilder_setInputPreset(
    builder: *mut AAudioStreamBuilder,
    input_preset: i32
)

Set the input (capture) preset for the stream.

The AAudio system will use this information to optimize the behavior of the stream. This could, for example, affect which microphones are used and how the recorded data is processed.

The default, if you do not call this function, is VoiceRecognition. That is because VoiceRecognition is the preset with the lowest latency on many platforms.

Available since API level 28.

Arguments

  • builder - reference provided by AAudio_createStreamBuilder()
  • input_preset - the desired configuration for recording