| @@ -7,17 +7,6 @@ | |||||
| ## Installation | ## 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 | ### Dependencies | ||||
| Audio requires two native libraries, `libsodium` and `opus`. | 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 | to the next song. You can await `AudioOutStream.FlushAsync` to wait for | ||||
| the audio client's internal buffer to clear out. | 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)] | |||||