Added UdpLatency to IAudioClient

This commit is contained in:
RogueException
2017-04-07 22:53:27 -03:00
parent ee4cde69a4
commit b62c9dc315

View File

@@ -8,14 +8,17 @@ namespace Discord.Audio
event Func<Task> Connected;
event Func<Exception, Task> Disconnected;
event Func<int, int, Task> LatencyUpdated;
event Func<int, int, Task> UdpLatencyUpdated;
event Func<ulong, AudioInStream, Task> StreamCreated;
event Func<ulong, Task> StreamDestroyed;
event Func<ulong, bool, Task> SpeakingUpdated;
/// <summary> Gets the current connection state of this client. </summary>
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; }
/// <summary> Gets the estimated round-trip latency, in milliseconds, to the voice UDP server. </summary>
int UdpLatency { get; }
Task StopAsync();