summaryrefslogtreecommitdiff
path: root/Voice.cs
diff options
context:
space:
mode:
authorTrueDoctor <d-kobert@web.de>2018-04-08 20:23:57 +0200
committerTrueDoctor <d-kobert@web.de>2018-04-08 20:23:57 +0200
commit23d2ede6124b0a7b10a74058a396477d52941337 (patch)
treed711ba83f6c17dc0065cb6c7b065ad27ef5b237f /Voice.cs
parent27a7038458f7ae0bcb9f2b4065940308b89fc172 (diff)
Did a lot of awsome stuff
Diffstat (limited to 'Voice.cs')
-rw-r--r--Voice.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Voice.cs b/Voice.cs
new file mode 100644
index 0000000..ea2f6d6
--- /dev/null
+++ b/Voice.cs
@@ -0,0 +1,21 @@
+using System;
+
+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);
+ }
+}