From b62c9dc315719f4e9f31dda0039353065e1fc4ad Mon Sep 17 00:00:00 2001 From: RogueException Date: Fri, 7 Apr 2017 22:53:27 -0300 Subject: [PATCH] Added UdpLatency to IAudioClient --- src/Discord.Net.Core/Audio/IAudioClient.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/Discord.Net.Core/Audio/IAudioClient.cs b/src/Discord.Net.Core/Audio/IAudioClient.cs index 3ee008320..a292c5aa8 100644 --- a/src/Discord.Net.Core/Audio/IAudioClient.cs +++ b/src/Discord.Net.Core/Audio/IAudioClient.cs @@ -8,14 +8,17 @@ namespace Discord.Audio event Func Connected; event Func Disconnected; event Func LatencyUpdated; + event Func UdpLatencyUpdated; event Func StreamCreated; event Func StreamDestroyed; event Func SpeakingUpdated; /// Gets the current connection state of this client. ConnectionState ConnectionState { get; } - /// Gets the estimated round-trip latency, in milliseconds, to the gateway server. + /// Gets the estimated round-trip latency, in milliseconds, to the voice websocket server. int Latency { get; } + /// Gets the estimated round-trip latency, in milliseconds, to the voice UDP server. + int UdpLatency { get; } Task StopAsync();