1
0
Fork 0
forked from External/grumble

Add VoiceTarget support (whispers and shouts)

This commit is contained in:
Mikkel Krautz 2011-11-12 20:29:18 +01:00
parent b799eb2bda
commit a42e4d07b4
7 changed files with 276 additions and 18 deletions

View file

@ -37,10 +37,11 @@ type Client struct {
disconnected bool
lastResync int64
crypt *cryptstate.CryptState
codecs []int32
udp bool
lastResync int64
crypt *cryptstate.CryptState
codecs []int32
udp bool
voiceTargets map[uint32]*VoiceTarget
// Ping stats
UdpPingAvg float32
@ -170,6 +171,13 @@ func (client *Client) ForceDisconnect() {
client.disconnect(true)
}
// Clear the client's caches
func (client *Client) ClearCaches() {
for _, vt := range client.voiceTargets {
vt.ClearCache()
}
}
// Reject an authentication attempt
func (client *Client) RejectAuth(rejectType mumbleproto.Reject_RejectType, reason string) {
var reasonString *string = nil