1
0
mirror of https://github.com/mgerb/go-discord-bot synced 2026-01-10 09:02:49 +00:00

changes for public use

This commit is contained in:
2017-03-27 18:46:03 -05:00
committed by mgerb42
parent 39861a62bc
commit 1626bdddcd
25 changed files with 58 additions and 2789 deletions

View File

@@ -113,8 +113,9 @@ func loadFile(fileName string) error {
fmt.Println("Loading file: " + fname + fextension)
// TODO - check if windows and use "./ffmpeg.exe" - change this if you wish to run on windows
// use ffmpeg to convert file into a format we can use
cmd := exec.Command("ffmpeg", "-i", config.Config.SoundsPath+fname+fextension, "-f", "s16le", "-ar", strconv.Itoa(frameRate), "-ac", strconv.Itoa(channels), "pipe:1")
cmd := exec.Command("./ffmpeg", "-i", config.Config.SoundsPath+fname+fextension, "-f", "s16le", "-ar", strconv.Itoa(frameRate), "-ac", strconv.Itoa(channels), "pipe:1")
ffmpegout, err := cmd.StdoutPipe()