startSystemAudioLoopback method

void startSystemAudioLoopback({
  1. String? deviceName,
})

Implementation

void startSystemAudioLoopback({String? deviceName}) {
  ffi.Pointer<ffi.Char> deviceNamePointer = deviceName?.toNativeUtf8().cast<ffi.Char>() ?? ffi.nullptr;

  _trtcFFIBindings.start_system_audio_loopback(_trtcsharedInstanceNativePointer, deviceNamePointer);

  if (deviceNamePointer != ffi.nullptr) {
    calloc.free(deviceNamePointer);
  }
}