Esempio n. 1
0
        /// <summary>
        /// Add a peer to the session.
        /// </summary>
        /// <param name="codec">The peer's audio codec.</param>
        /// <param name="quality">The peer's audio quality (usually the sample rate).</param>
        /// <param name="endpoint">The peer's public endpoint.</param>
        public void AddPeer(VoiceCodec codec, int quality, IPEndPoint endpoint)
        {
            base.AddPeer(endpoint);
            var peer = new VoicePeer(codec, quality, _pool);

            peer.Volume = _outputVolume;
            peer.Gain   = _outputGain;
            _peers.Add(endpoint, peer);
        }
Esempio n. 2
0
		/// <summary>
		/// Add a peer to the session.
		/// </summary>
		/// <param name="codec">The peer's audio codec.</param>
		/// <param name="quality">The peer's audio quality (usually the sample rate).</param>
		/// <param name="endpoint">The peer's public endpoint.</param>
		public void AddPeer(VoiceCodec codec, int quality, IPEndPoint endpoint)
		{
			base.AddPeer(endpoint);
			var peer = new VoicePeer(codec, quality, _pool);
			peer.Volume = _outputVolume;
			peer.Gain = _outputGain;
			_peers.Add(endpoint, peer);
		}