Browse Source

Merge pull request #651 from Bond-009/patch-1

Remove wrong parameter from FFMPEG audio example
tags/1.0
Christopher F GitHub 8 years ago
parent
commit
6ad4889a9e
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      docs/guides/voice/samples/audio_ffmpeg.cs

+ 1
- 1
docs/guides/voice/samples/audio_ffmpeg.cs View File

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

Loading…
Cancel
Save