TeeAudioProcessor.AudioBufferSink


interface TeeAudioProcessor.AudioBufferSink

Known direct subclasses
TeeAudioProcessor.WavFileAudioBufferSink

A sink for audio buffers that writes output audio as .wav files with a given path prefix.

WaveformAudioBufferSink

A sink for audio buffers that produces waveform bars.


A sink for audio buffers handled by the audio processor.

Summary

Public functions

Unit
flush(sampleRateHz: Int, channelCount: Int, @C.PcmEncoding encoding: Int)

Called when the audio processor is flushed with a format of subsequent input.

Unit

Called when data is written to the audio processor.

Public functions

flush

fun flush(sampleRateHz: Int, channelCount: Int, @C.PcmEncoding encoding: Int): Unit

Called when the audio processor is flushed with a format of subsequent input.

handleBuffer

fun handleBuffer(buffer: ByteBuffer!): Unit

Called when data is written to the audio processor.

Parameters
buffer: ByteBuffer!

A read-only buffer containing input which the audio processor will handle.