MixerAudioBufferCallback

A convenience class that handles mixing the microphone data and custom audio data.

Inheritors

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
class BufferResponse(val byteBuffer: ByteBuffer? = null, val captureTimeNs: Long? = null)

Functions

Link copied to clipboard
override fun onBuffer(buffer: ByteBuffer, audioFormat: Int, channelCount: Int, sampleRate: Int, bytesRead: Int, captureTimeNs: Long): Long

Called when new audio samples are ready.

Link copied to clipboard
abstract fun onBufferRequest(originalBuffer: ByteBuffer, audioFormat: Int, channelCount: Int, sampleRate: Int, bytesRead: Int, captureTimeNs: Long): MixerAudioBufferCallback.BufferResponse?