public interface

TeeAudioProcessor.AudioBufferSink

 androidx.media3.exoplayer.audio.TeeAudioProcessor.AudioBufferSink

Subclasses:

TeeAudioProcessor.WavFileAudioBufferSink, WaveformAudioBufferSink

Overview

A sink for audio buffers handled by the audio processor.

Summary

Methods
public voidflush(int sampleRateHz, int channelCount, int encoding)

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

public voidhandleBuffer(java.nio.ByteBuffer buffer)

Called when data is written to the audio processor.

Methods

public void flush(int sampleRateHz, int channelCount, int encoding)

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

public void handleBuffer(java.nio.ByteBuffer buffer)

Called when data is written to the audio processor.

Parameters:

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