Update audio_ffmpeg.cs

AudioApplication is a required argument
This commit is contained in:
William Haskell
2017-03-14 18:47:28 +01:00
committed by GitHub
parent 92028f59e9
commit ab43f82771

View File

@@ -3,7 +3,7 @@ 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);
var discord = client.CreatePCMStream(AudioApplication.Mixed, 1920);
await output.CopyToAsync(discord);
await discord.FlushAsync();
}
}