Browse Source

Added UdpLatency to IAudioClient

pull/603/head
RogueException 8 years ago
parent
commit
b62c9dc315
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/Discord.Net.Core/Audio/IAudioClient.cs

+ 4
- 1
src/Discord.Net.Core/Audio/IAudioClient.cs View File

@@ -8,14 +8,17 @@ namespace Discord.Audio
event Func<Task> Connected; event Func<Task> Connected;
event Func<Exception, Task> Disconnected; event Func<Exception, Task> Disconnected;
event Func<int, int, Task> LatencyUpdated; event Func<int, int, Task> LatencyUpdated;
event Func<int, int, Task> UdpLatencyUpdated;
event Func<ulong, AudioInStream, Task> StreamCreated; event Func<ulong, AudioInStream, Task> StreamCreated;
event Func<ulong, Task> StreamDestroyed; event Func<ulong, Task> StreamDestroyed;
event Func<ulong, bool, Task> SpeakingUpdated; event Func<ulong, bool, Task> SpeakingUpdated;


/// <summary> Gets the current connection state of this client. </summary> /// <summary> Gets the current connection state of this client. </summary>
ConnectionState ConnectionState { get; } ConnectionState ConnectionState { get; }
/// <summary> Gets the estimated round-trip latency, in milliseconds, to the gateway server. </summary>
/// <summary> Gets the estimated round-trip latency, in milliseconds, to the voice websocket server. </summary>
int Latency { get; } int Latency { get; }
/// <summary> Gets the estimated round-trip latency, in milliseconds, to the voice UDP server. </summary>
int UdpLatency { get; }


Task StopAsync(); Task StopAsync();




Loading…
Cancel
Save