IAudioSourceInternal

The internal interface for audio sources.

This interface extends IAudioSource and adds additional functionality for streaming and configuration.

Types

Link copied to clipboard
interface Factory

A factory to build an IAudioSourceInternal.

Properties

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

Flow of the last streaming state.

Functions

Link copied to clipboard
abstract suspend fun configure(config: AudioSourceConfig)

Configure the Configurable implementation.

Link copied to clipboard
abstract fun fillAudioFrame(frame: RawFrame): RawFrame

Gets an audio frame from the source.

Link copied to clipboard
abstract fun getAudioFrame(frameFactory: IReadOnlyRawFrameFactory): RawFrame

Gets an audio frame from the source.

Link copied to clipboard
abstract fun release()

Closes and releases resources

Link copied to clipboard
abstract suspend fun startStream()

Starts frames or data stream generation Throws an exception if not ready for live stream

Link copied to clipboard
abstract suspend fun stopStream()

Stops frames or data stream generation