Started adding IAudioClient incoming stream creation/destruction events
This commit is contained in:
@@ -8,7 +8,9 @@ namespace Discord.Audio
|
||||
event Func<Task> Connected;
|
||||
event Func<Exception, Task> Disconnected;
|
||||
event Func<int, int, Task> LatencyUpdated;
|
||||
|
||||
event Func<ulong, AudioInStream, Task> StreamCreated;
|
||||
event Func<ulong, Task> StreamDestroyed;
|
||||
|
||||
/// <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>
|
||||
|
||||
@@ -1,6 +1,12 @@
|
||||
namespace Discord
|
||||
using Discord.Audio;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Discord
|
||||
{
|
||||
public interface IAudioChannel : IChannel
|
||||
{
|
||||
/// <summary> Connects to this audio channel. </summary>
|
||||
Task<IAudioClient> ConnectAsync(Action<IAudioClient> configAction = null);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Discord.Audio;
|
||||
using System;
|
||||
using System;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Discord
|
||||
@@ -13,7 +12,5 @@ namespace Discord
|
||||
|
||||
/// <summary> Modifies this voice channel. </summary>
|
||||
Task ModifyAsync(Action<VoiceChannelProperties> func, RequestOptions options = null);
|
||||
/// <summary> Connects to this voice channel. </summary>
|
||||
Task<IAudioClient> ConnectAsync();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user