diff options
author | TrueDoctor <d-kobert@web.de> | 2018-04-08 23:06:21 +0200 |
---|---|---|
committer | TrueDoctor <d-kobert@web.de> | 2018-04-08 23:06:21 +0200 |
commit | cac1ade8763605c3cf09859a48358cab0e00027a (patch) | |
tree | a25658e2f59964facb7db25ed7d4056c072f2be6 /Voice.cs | |
parent | 23d2ede6124b0a7b10a74058a396477d52941337 (diff) |
Added Audio Support
Diffstat (limited to 'Voice.cs')
-rw-r--r-- | Voice.cs | 19 |
1 files changed, 1 insertions, 18 deletions
@@ -1,21 +1,4 @@ using System; +using Discord; -public class Voice -{ - public Voice(IAudioclient audi) - { - } - - private Process CreateStream(string path) - { - var ffmpeg = new ProcessStartInfo - { - FileName = "ffmpeg", - Arguments = $"-i {path} -ac 2 -f s16le -ar 48000 pipe:1", - UseShellExecute = false, - RedirectStandardOutput = true, - }; - return Process.Start(ffmpeg); - } -} |