/// <summary> /// Initializes this Client instance. /// If the client is already initialized, it will do nothing. /// <param name="config">Optional: config to set on initialize</param> /// </summary> public void Initialize(VivoxConfig config = null) { if (Initialized) { return; } VxClient.Instance.Start(config); // Refresh audio devices to ensure they are up to date when the client is initialized. AudioInputDevices.BeginRefresh(null); AudioOutputDevices.BeginRefresh(null); }
/// <summary> /// Initializes this Client instance. /// If the client is already initialized, it will do nothing. /// <param name="config">Optional: config to set on initialize</param> /// </summary> public void Initialize(VivoxConfig config = null) { if (_initialized) { return; } VxClient.Instance.Start(config != null? config.ToVx_Sdk_Config() : new VivoxConfig().ToVx_Sdk_Config()); _initialized = true; // Refresh audio devices to ensure they are up to date when the client is initialized. AudioInputDevices.BeginRefresh(null); AudioOutputDevices.BeginRefresh(null); }