PushMicrophoneSession

constructor(format: AudioFormat, onStop: () -> Unit = {}, extraBufferCapacity: Int = 128)

Parameters

onStop

invoked once when the session stops, so the adapter can tell the vendor/transport to stop streaming (e.g. a "stopMicrophone" channel call). Kept non-suspending so it is trivial to pass from Swift.