static void Main(string[] args) { var client = new MumbleClient("Mumble.net"); client.Connect(); System.Console.ReadLine(); System.Console.WriteLine(client.RootChannel.Tree()); System.Console.ReadLine(); }
public MumbleUser(MumbleClient client, MumbleProto.UserState message) { this.client = client; Name = message.name; Session = message.session; client.Users.Add(Session, this); this.Channel = client.Channels[message.channel_id]; this.Channel.AddLocalUser(this); }
public MumbleChannel(MumbleClient client, MumbleProto.ChannelState message) { this.client = client; ID = message.channel_id; Name = message.name; client.Channels.Add(ID, this); client.Channels.TryGetValue(message.parent, out parentChannel); if (IsRoot()) { client.RootChannel = this; } else { parentChannel.subChannels.Add(this); } }
public void HandleMessage(MumbleClient client) { var audioIn = new AudioPacket(this.packet); var type = audioIn.DecodeTypeTarget(); var session = audioIn.DecodeVarint(); var sequence = audioIn.DecodeVarint(); System.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); }
public void HandleMessage(MumbleClient client) { }
public void HandleMessage(MumbleClient client) { client.Update(this); }
public void HandleMessage(MumbleClient client) { MumbleUser user; if (!client.Users.TryGetValue(this.session, out user)) { user = new MumbleUser(client, this); } user.Update(this); }
public void HandleMessage(MumbleClient client) { MumbleChannel channel; if (!client.Channels.TryGetValue(this.channel_id, out channel)) { channel = new MumbleChannel(client, this); } channel.Update(this); }