diff options
Diffstat (limited to 'DiscoBot/Audio.cs')
-rw-r--r-- | DiscoBot/Audio.cs | 27 |
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); + } + } + + +} |