STWSinkCaptureCallback

interface STWSinkCaptureCallback

This interface should used when the audio sink feature is enabled to write audio in the given session :

onReady(sampleRate : Int) : should be triggered when the feature is enabled and the call is started, this callback should be received for Capture(audio captured by your audio input).

pushAudioStream(data : ShortArray, sizeInSamples : Int) : should be triggered when the feature is enabled and the call is started, here application push audio to be written in the given call.

onEnd() : should be triggered when the call is ended, here app should release all resources used.

FYI : there is another way to handle the sink event it is with the Kotlin flow.

See also

Functions

Link copied to clipboard
abstract fun onEnd()
Link copied to clipboard
abstract fun onReady(sampleRate: Int)
Link copied to clipboard
abstract fun pushAudioStream(audioData: ShortArray, sizeInSamples: Int)