AudioSource

The AudioSource class manages audio capture functionalities.

Properties

Link copied to clipboard
val id: Int

Returns the unique identifier associated with the source.

Link copied to clipboard
open override var isCapturing: Boolean

Indicates whether the AudioSource instance is currently actively capturing audio.

Link copied to clipboard

Returns the name assigned to the source.

Link copied to clipboard
val type: Type

Returns the type of the source.

Functions

Link copied to clipboard
open override fun release()

Releases and cleans up resources associated with the AudioSource instance.

Link copied to clipboard
open override fun startCapture(): AudioTrack

Initiates the audio capture process from the current AudioSource implementation using the system's microphone.

Link copied to clipboard
open override fun stopCapture()

Stops the audio capture process.

Link copied to clipboard
open override fun toString(): String

Returns the name of the source in the form of a string.