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.

Link copied to clipboard
abstract val minBufferSize: Int

Gets the size of the buffer to allocate. When using encoder is callback mode, it's unused.

Functions

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

Configure the Configurable implementation.

Link copied to clipboard
abstract fun fillAudioFrame(buffer: ByteBuffer): Long

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