TeeAudioProcessor.AudioBufferSink


public 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 methods

abstract void
flush(int sampleRateHz, int channelCount, @C.PcmEncoding int encoding)

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

abstract void

Called when data is written to the audio processor.

Public methods

flush

abstract void flush(int sampleRateHz, int channelCount, @C.PcmEncoding int encoding)

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

handleBuffer

abstract void handleBuffer(ByteBuffer buffer)

Called when data is written to the audio processor.

Parameters
ByteBuffer buffer

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