MicInputPreset

The system will use this information to optimize the behavior of the input stream.

This could, for example, affect which microphones are used and how the recorded data is processed.

NOTE: This attribute only has an effect on Android API 28+

Entries

Link copied to clipboard

Use this preset when other presets do not apply.

Link copied to clipboard

Use this preset when recording video.

Link copied to clipboard

Use this preset when doing speech recognition or you want raw audio.

Link copied to clipboard

Use this preset when doing telephony or voice messaging.

Link copied to clipboard

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.

Link copied to clipboard

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.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun value(): Int
Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.