From a92c27da3bb119691a2ba094cd6c79a0a2b5a264 Mon Sep 17 00:00:00 2001 From: Bond-009 Date: Thu, 11 May 2017 18:01:39 +0200 Subject: [PATCH] Remove wrong parameter from FFMPEG audio example This parameter was samples per frame but changed to bitrate. (1920 is a way to low bitrate :) ) --- docs/guides/voice/samples/audio_ffmpeg.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/voice/samples/audio_ffmpeg.cs b/docs/guides/voice/samples/audio_ffmpeg.cs index 716ec3d6c..b9430ac11 100644 --- a/docs/guides/voice/samples/audio_ffmpeg.cs +++ b/docs/guides/voice/samples/audio_ffmpeg.cs @@ -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(AudioApplication.Mixed, 1920); + var discord = client.CreatePCMStream(AudioApplication.Mixed); await output.CopyToAsync(discord); await discord.FlushAsync(); }