Exemplo n.º 1
0
        public void Initialize(int logLevel, int debugLocation = 0)
        {
            VivoxConfig config = new VivoxConfig();

            config.InitialLogLevel            = (vx_log_level)logLevel;
            VivoxDebug.Instance.debugLocation = debugLocation;
            Initialize(config);
        }
Exemplo n.º 2
0
        /// <summary>
        /// This method is used to start VxClient.
        /// Most implementations should use <see cref="Client"/> instead of <see cref="VxClient"/>
        /// </summary>
        /// <param name="config">Optional: config to set on initialize.</param>
        public void Start(VivoxConfig config = null)
        {
            config = config == null ? new VivoxConfig() : config;

#if (UNITY_IOS && !UNITY_EDITOR) || __IOS__
            if (!config.SkipPrepareForVivox)
            {
                PrepareForVivox();
            }
#endif
            InternalStart(config.ToVx_Sdk_Config());
        }
Exemplo n.º 3
0
        /// <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);
        }
Exemplo n.º 4
0
        /// <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);
        }