Conditions | 1 |
Total Lines | 3 |
Code Lines | 3 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | package bot |
||
18 | func (song Song) Ffmpeg(volume float32) *exec.Cmd { |
||
19 | return exec.Command("ffmpeg", "-i", song.Media, "-f", "s16le", "-reconnect", "1", "-reconnect_at_eof", "1", "-reconnect_streamed", "1", "-reconnect_delay_max", "2", "-filter:a", fmt.Sprintf("volume=%.3f", volume), "-ar", strconv.Itoa(FRAME_RATE), "-ac", |
||
20 | strconv.Itoa(CHANNELS), "pipe:1") |
||
21 | } |
||
31 |