CapturingAudioSink.SampleInterceptingBufferSink


class CapturingAudioSink.SampleInterceptingBufferSink : TeeAudioProcessor.AudioBufferSink


Summary

Public constructors

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.

Unit

Public constructors

SampleInterceptingBufferSink

SampleInterceptingBufferSink()

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.

setCapturingAudioSink

fun setCapturingAudioSink(capturingAudioSink: CapturingAudioSink!): Unit