summaryrefslogtreecommitdiff
path: root/DiscoBot/Audio.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-04-08 23:06:21 +0200
committerTrueDoctor <d-kobert@web.de>2018-04-08 23:06:21 +0200
commitcac1ade8763605c3cf09859a48358cab0e00027a (patch)
treea25658e2f59964facb7db25ed7d4056c072f2be6 /DiscoBot/Audio.cs
parent23d2ede6124b0a7b10a74058a396477d52941337 (diff)
Added Audio Support
Diffstat (limited to 'DiscoBot/Audio.cs')
-rw-r--r--DiscoBot/Audio.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/DiscoBot/Audio.cs b/DiscoBot/Audio.cs
new file mode 100644
index 0000000..68c860c
--- /dev/null
+++ b/DiscoBot/Audio.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace DiscoBot
+{
+ using System.Diagnostics;
+
+ class Audio
+ {
+ 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);
+ }
+ }
+
+
+}