really helps to review files before you commit them
oops
This commit is contained in:
@@ -38,7 +38,8 @@ The IAudioClient is used to connect/disconnect to/from a Voice Channel, and to s
|
|||||||
|
|
||||||
Disconnects the IAudioClient from the Voice Server.
|
Disconnects the IAudioClient from the Voice Server.
|
||||||
|
|
||||||
..function:: IAudioClient.Join(Channel);
|
|
||||||
|
.. function:: IAudioClient.Join(Channel);
|
||||||
|
|
||||||
Moves the IAudioClient to another channel on the Voice Server, or starts a connection if one has already been terminated.
|
Moves the IAudioClient to another channel on the Voice Server, or starts a connection if one has already been terminated.
|
||||||
|
|
||||||
@@ -46,15 +47,15 @@ The IAudioClient is used to connect/disconnect to/from a Voice Channel, and to s
|
|||||||
|
|
||||||
Because versions previous to 0.9 do not discretely differentiate between Text and Voice Channels, you may want to ensure that users cannot request the audio client to join a text channel, as this will throw an exception, leading to potentially unexpected behavior
|
Because versions previous to 0.9 do not discretely differentiate between Text and Voice Channels, you may want to ensure that users cannot request the audio client to join a text channel, as this will throw an exception, leading to potentially unexpected behavior
|
||||||
|
|
||||||
..function:: IAudioClient.Wait();
|
.. function:: IAudioClient.Wait();
|
||||||
|
|
||||||
Blocks the current thread until the sending audio buffer has cleared out.
|
Blocks the current thread until the sending audio buffer has cleared out.
|
||||||
|
|
||||||
..function:: IAudioClient.Clear();
|
.. function:: IAudioClient.Clear();
|
||||||
|
|
||||||
Clears the sending audio buffer.
|
Clears the sending audio buffer.
|
||||||
|
|
||||||
..function:: IAudioClient.Send(byte[] data, int offset, int count);
|
.. function:: IAudioClient.Send(byte[] data, int offset, int count);
|
||||||
|
|
||||||
Adds a stream of data to the Audio Client's internal buffer, to be sent to Discord. Follows the standard c# Stream.Send() format.
|
Adds a stream of data to the Audio Client's internal buffer, to be sent to Discord. Follows the standard c# Stream.Send() format.
|
||||||
|
|
||||||
@@ -109,7 +110,7 @@ Broadcasting with FFmpeg
|
|||||||
|
|
||||||
`FFmpeg`_ allows for a more advanced approach to sending audio, although it is multiplatform safe. The following example will show you how to stream a file to Discord.
|
`FFmpeg`_ allows for a more advanced approach to sending audio, although it is multiplatform safe. The following example will show you how to stream a file to Discord.
|
||||||
|
|
||||||
.. code-block::csharp6
|
.. code-block:: csharp6
|
||||||
|
|
||||||
public void SendAudio(string pathOrUrl)
|
public void SendAudio(string pathOrUrl)
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user