forked from External/grumble
Add VoiceTarget support (whispers and shouts)
This commit is contained in:
parent
b799eb2bda
commit
a42e4d07b4
7 changed files with 276 additions and 18 deletions
16
client.go
16
client.go
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue