Back to Exoplayer

TeeAudioProcessor.AudioBufferSink (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/audio/TeeAudioProcessor.AudioBufferSink.html

latest1.5 KB
Original Source

Package com.google.android.exoplayer2.audio

Interface TeeAudioProcessor.AudioBufferSink

  • All Known Implementing Classes:TeeAudioProcessor.WavFileAudioBufferSinkEnclosing class:TeeAudioProcessor

public static interfaceTeeAudioProcessor.AudioBufferSink

A sink for audio buffers handled by the audio processor.

Method Summary

All Methods Instance Methods Abstract Methods | Modifier and Type | Method | Description | | --- | --- | --- | | void | flush​(int sampleRateHz, int channelCount, @com.google.android.exoplayer2.C.PcmEncoding int encoding) | Called when the audio processor is flushed with a format of subsequent input. | | void | handleBuffer​(ByteBuffer buffer) | Called when data is written to the audio processor. |

Method Detail

- 

flush

void flush​(int sampleRateHz,
           int channelCount,
           @com.google.android.exoplayer2.C.PcmEncoding int encoding)

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

- 

handleBuffer

void handleBuffer​([ByteBuffer](https://developer.android.com/reference/java/nio/ByteBuffer.html "class or interface in java.nio")buffer)

Called when data is written to the audio processor. Parameters:buffer - A read-only buffer containing input which the audio processor will handle.