AudioCaptureOptions

Options of an audio capture session.

Since

9.6.0

See also

Types

Link copied to clipboard
class Builder
A builder of AudioCaptureOptions.

Properties

Link copied to clipboard
The default number of frames per captured buffer.
Link copied to clipboard
The default sample rate in hertz.
Link copied to clipboard
val MAX_SAMPLE_RATE: Int = 768000
The maximum supported sample rate in hertz.
Link copied to clipboard
val MIN_SAMPLE_RATE: Int = 3000
The minimum supported sample rate in hertz.

Functions

Link copied to clipboard
Returns the channel layout of the captured audio stream.
Link copied to clipboard
open fun framesPerBuffer(): Int
Returns the number of frames per captured buffer.
Link copied to clipboard
open fun muteSource(): Boolean
Returns true if the audio playback is muted while the capture session is active.
Link copied to clipboard
Creates a new AudioCaptureOptions builder initialized with the default values.
Link copied to clipboard
open fun sampleRate(): Int
Returns the sample rate in hertz.