Browse Source

Merge e736e123fe into f3b8937686

pull/587/merge
Chris Johnston GitHub 8 years ago
parent
commit
e5494f84a1
1 changed files with 1 additions and 12 deletions
  1. +1
    -12
      docs/guides/voice.md

+ 1
- 12
docs/guides/voice.md View File

@@ -7,17 +7,6 @@

## Installation

To use Audio, you must first configure your [DiscordSocketClient]
with Audio support.

In your [DiscordSocketConfig], set `AudioMode` to the appropriate
[AudioMode] for your bot. For most bots, you will only need to use
`AudioMode.Outgoing`.

[DiscordSocketClient]: xref:Discord.WebSocket.DiscordSocketClient
[DiscordSocketConfig]: xref:Discord.WebSocket.DiscordSocketConfig
[AudioMode]: xref:Discord.Audio.AudioMode

### Dependencies

Audio requires two native libraries, `libsodium` and `opus`.
@@ -108,4 +97,4 @@ you will want to wait for audio to stop playing before continuing on
to the next song. You can await `AudioOutStream.FlushAsync` to wait for
the audio client's internal buffer to clear out.

[!code-csharp[Sending Audio](samples/audio_ffmpeg.cs)]
[!code-csharp[Sending Audio](samples/audio_ffmpeg.cs)]

Loading…
Cancel
Save