AudioTrackSinkFlow

class AudioTrackSinkFlow : AudioTrackSink

Gathers the audio data from a RemoteAudioTrack and emits through a flow.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard
val audioFlow: MutableSharedFlow<Pair<ByteBuffer, Int>>
Link copied to clipboard
val audioFormat: MutableStateFlow<AudioFormat>

Functions

Link copied to clipboard
open override fun onData(    audioData: ByteBuffer,     bitsPerSample: Int,     sampleRate: Int,     numberOfChannels: Int,     numberOfFrames: Int,     absoluteCaptureTimestampMs: Long)