public void SendVoice(ArraySegment <byte> packet) { //The packet must be a well formed Mumble packet as described in https://mumble-protocol.readthedocs.org/en/latest/voice_data.html#packet-format //The packet is created in BasicMumbleProtocol's EncodingThread _tcp.SendVoice(PacketType.UDPTunnel, packet); }
public void SendVoice(ArraySegment <byte> packet) { //The packet must be a well formed Mumble packet as described in https://mumble-protocol.readthedocs.org/en/latest/voice_data.html#packet-format //The packet is created in BasicMumbleProtocol's EncodingThread if (VoiceSupportEnabled) { _tcp.SendVoice(PacketType.UDPTunnel, packet); } else { throw new InvalidOperationException("Voice Support is disabled with this connection"); } }