internal virtual void service() { if (this.voiceClient.transport.IsChannelJoined(this.channelId) && this.TransmitEnabled) { while (true) { var x = encoder.DequeueOutput(); if (x.Count == 0) { break; } else { sendFrame(x); } } } if (noTransmitCnt == 0) { this.IsCurrentlyTransmitting = false; } else { this.IsCurrentlyTransmitting = true; noTransmitCnt--; } if (LocalUserServiceable != null) { LocalUserServiceable.Service(this); } }
internal virtual void service() { if (this.voiceClient.frontend.IsChannelJoined(this.channelId) && this.Transmit) { if (encoder is IEncoderQueued) { foreach (var x in ((IEncoderQueued)encoder).GetOutput()) { sendFrame(x); } } } if (noTransmitCnt == 0) { this.IsTransmitting = false; } else { this.IsTransmitting = true; noTransmitCnt--; } if (LocalUserServiceable != null) { LocalUserServiceable.Service(this); } }
internal virtual void service() { if (this.voiceClient.transport.IsChannelJoined(this.channelId) && this.TransmitEnabled) { while (true) { FrameFlags f; var x = encoder.DequeueOutput(out f); if (x.Count == 0) { break; } else { sendFrame(x, f); } } } if (LocalUserServiceable != null) { LocalUserServiceable.Service(this); } }