Add voice guide

This commit is contained in:
Christopher F
2017-01-16 13:21:32 -05:00
parent 99b1398dc4
commit 6a0f41a4dc
7 changed files with 121 additions and 21 deletions

View File

@@ -0,0 +1,9 @@
private async Task SendAsync(IAudioClient client, string path)
{
// Create FFmpeg using the previous example
var ffmpeg = CreateStream(path);
var output = ffmpeg.StandardOutput.BaseStream;
var discord = client.CreatePCMStream(1920);
await output.CopyToAsync(discord);
await discord.FlushAsync();
}