IAudioInput

interface IAudioInput

The public interface for the audio input. It provides access to the audio source, the audio processor, and the streaming state.

Properties

Link copied to clipboard
open var isMuted: Boolean

The audio source. It allows access to advanced audio settings.

Link copied to clipboard
abstract val isStreamingFlow: StateFlow<Boolean>

Whether the audio input is streaming.

Link copied to clipboard

The audio processor for adding effects to the audio frames.

Link copied to clipboard
abstract val sourceFlow: StateFlow<IAudioSource?>

The audio source

Link copied to clipboard
abstract val withConfig: Boolean

Whether the audio input has a configuration. It is true if the audio source has been configured.

Link copied to clipboard

Whether the pipeline has an audio source.

Functions

Link copied to clipboard
abstract suspend fun setSource(audioSourceFactory: IAudioSourceInternal.Factory)

Sets a new audio source.