AudioBufferProcessor

Capture the decoded PCM and forward it to the callback. The data is also written to the output buffer to keep the AudioSink writing to the AudioTrack. That write is what paces the player to real time, so it must not be skipped even if the player is muted.

Constructors

Link copied to clipboard
constructor(callback: (ByteArray) -> Unit)

Properties

Link copied to clipboard
open val isActive: Boolean
Link copied to clipboard
open val isEnded: Boolean
Link copied to clipboard
open val output: ByteBuffer?

Functions

Link copied to clipboard
Link copied to clipboard
fun flush()
fun flush(streamMetadata: AudioProcessor.StreamMetadata?)
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open override fun queueInput(inputBuffer: ByteBuffer)
Link copied to clipboard
fun reset()