Ejemplo n.º 1
0
        public void HandleMessage(MumbleClient client)
        {
            var audioIn = new AudioPacket(packet);

            var type     = audioIn.DecodeTypeTarget();
            var session  = audioIn.DecodeVarint();
            var sequence = audioIn.DecodeVarint();

            Console.WriteLine(sequence);

            var audioOut = new AudioPacket();

            type.Target = 0;

            audioOut.EncodeTypeTarget(type);
            //audioOut.EncodeVarint(client.ClientUser.Session);
            audioOut.EncodeVarint(sequence + 5000);
            audioOut.Payload = audioIn.Payload;

            //client.SendUDPTunnel(audioOut.Packet);
        }
Ejemplo n.º 2
0
        public void HandleMessage(MumbleClient client)
        {
            var audioIn = new AudioPacket(packet);

            var type = audioIn.DecodeTypeTarget();
            var session = audioIn.DecodeVarint();
            var sequence = audioIn.DecodeVarint();

            Console.WriteLine(sequence);

            var audioOut = new AudioPacket();

            type.Target = 0;

            audioOut.EncodeTypeTarget(type);
            //audioOut.EncodeVarint(client.ClientUser.Session);
            audioOut.EncodeVarint(sequence + 5000);
            audioOut.Payload = audioIn.Payload;

            //client.SendUDPTunnel(audioOut.Packet);
        }