STWAudio Sink Capture Callback
This interface should used when the audio sink feature is enabled to write audio in the given session :
onReady(call : STWVCall, audioFormat : AudioFormat) : 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.