void onStateChangeVoiceClient(LoadBalancing.ClientState state) { switch (state) { case LoadBalancing.ClientState.Joined: this.voiceClient.clearRemoteVoices(); this.voiceClient.sendChannelVoicesInfo(LoadBalancingFrontend.DefaultVoiceChannel, 0); // my join, broadcast if (this.voiceClient.GlobalAudioGroup != 0) { this.loadBalancingPeer.OpChangeGroups(new byte[0], new byte[] { this.voiceClient.GlobalAudioGroup }); } break; } if (this.OnStateChangeAction != null) { this.OnStateChangeAction(state); } }
void onStateChangeVoiceClient(LoadBalancing.ClientState state) { switch (state) { case LoadBalancing.ClientState.Joined: this.voiceClient.clearRemoteVoices(); this.voiceClient.sendVoicesInfo(0); // my join, broadcast if (this.voiceClient.GlobalGroup != 0) { this.loadBalancingPeer.OpChangeGroups(new byte[0], new byte[] { this.voiceClient.GlobalGroup }); } break; case LoadBalancing.ClientState.Disconnected: this.voiceClient.clearRemoteVoices(); break; } if (this.OnStateChangeAction != null) { this.OnStateChangeAction(state); } }