/// <summary> /// Initial connection to the server /// </summary> /// <param name="serverSync"></param> public virtual void ServerSync(ServerSync serverSync) { if (LocalUser != null) throw new InvalidOperationException("Second ServerSync Received"); //Get the local user LocalUser = UserDictionary[serverSync.Session]; _encodingBuffer = new AudioEncodingBuffer(); _encodingThread.Start(); ReceivedServerSync = true; }
/// <summary> /// Initial connection to the server /// </summary> /// <param name="serverSync"></param> public virtual void ServerSync(ServerSync serverSync) { if (LocalUser != null) throw new InvalidOperationException("Second ServerSync Received"); LocalUser = UserDictionary[serverSync.Session]; ReceivedServerSync = true; }