PcmAudioSource

A read-based source that identifies its PCM format for rate/channel conversion. Configure before opening and keep the format fixed until closed. To change it, detach the source, change its format, then attach it again.

Inheritors

Properties

Link copied to clipboard
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.