From 4f7118f241d718867d66ae36384333b6e128429b Mon Sep 17 00:00:00 2001 From: RogueException Date: Tue, 5 Jan 2016 00:17:23 -0400 Subject: [PATCH] Updated IAudioClient --- src/Discord.Net.Audio/IAudioClient.cs | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/Discord.Net.Audio/IAudioClient.cs b/src/Discord.Net.Audio/IAudioClient.cs index 6d2ec8dcd..838ec945a 100644 --- a/src/Discord.Net.Audio/IAudioClient.cs +++ b/src/Discord.Net.Audio/IAudioClient.cs @@ -1,4 +1,5 @@ -using System.Threading.Tasks; +using System.IO; +using System.Threading.Tasks; namespace Discord.Audio { @@ -7,14 +8,16 @@ namespace Discord.Audio ConnectionState State { get; } Channel Channel { get; } Server Server { get; } + Stream OutputStream { get; } Task Join(Channel channel); Task Disconnect(); /// Sends a PCM frame to the voice server. Will block until space frees up in the outgoing buffer. /// PCM frame to send. This must be a single or collection of uncompressed 48Kz monochannel 20ms PCM frames. + /// Offset . /// Number of bytes in this frame. - void Send(byte[] data, int count); + void Send(byte[] data, int offset, int count); /// Clears the PCM buffer. void Clear(); /// Blocks until the voice output buffer is empty.