Browse Source

Merge pull request #571 from LeafyDev/patch-1

Update audio_ffmpeg.cs
tags/1.0-rc
Christopher F GitHub 8 years ago
parent
commit
506b4ff36a
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      docs/guides/samples/audio_ffmpeg.cs

+ 2
- 2
docs/guides/samples/audio_ffmpeg.cs 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();
}
}

Loading…
Cancel
Save