AudioSource

interface AudioSource : Source

Captures audio buffers for a media mixer.

Inheritors

Properties

Link copied to clipboard
abstract var isMuted: Boolean

Whether captured audio is replaced with silence.

Functions

Link copied to clipboard
abstract suspend fun close(): Result<Unit>

Closes the source and returns the result of releasing its capture resources.

Link copied to clipboard
abstract suspend fun open(mixer: MediaMixer): Result<Unit>

Opens the source for the given mixer and returns the result of initialization.

Link copied to clipboard
abstract fun read(track: Int): MediaBuffer

Reads audio for the given track.