AudioProcessor

A stateful input-track processor. Buffers use format and are consumed synchronously.

The mixer serializes calls, including reset after a discontinuity and close on stop. Return a buffer valid until the next call. Preserve the sample rate/channel layout and sample count over time; processors must not block on I/O or retain the input buffer.

Types

Link copied to clipboard
fun interface Factory

Creates a new, exclusively owned processor for a track start or a pushed decoder's format change. Read-based sources keep their format fixed until detached/closed.

Properties

Link copied to clipboard
abstract val format: PcmAudioFormat

Functions

Link copied to clipboard
abstract override fun close()
Link copied to clipboard
abstract fun process(input: ByteBuffer): ByteBuffer
Link copied to clipboard
abstract fun reset()