You can not select more than 25 topics
Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- private async Task SendAsync(IAudioClient client, string path)
- {
- // Create FFmpeg using the previous example
- using (var ffmpeg = CreateStream(path))
- using (var output = ffmpeg.StandardOutput.BaseStream)
- using (var discord = client.CreatePCMStream(AudioApplication.Mixed))
- {
- try { await output.CopyToAsync(discord); }
- finally { await discord.FlushAsync(); }
- }
- }
|