Skip to content

Commit

Permalink
ok better to not loop then loop forever lolcats Update main.go
Browse files Browse the repository at this point in the history
okay so no clear documentation i see on mpg123 to make it cleanly close when you want it to, and i'm good with it looping once if you're pwned. Just add -Z if you want it to loop forever, no death until PID death amirite??
  • Loading branch information
zamzx authored Dec 16, 2023
1 parent facff26 commit 3310bfa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ func termSize() (int, int) {

func playAudio() {
audio, _ := filepath.Abs("assets/audio.mp3")
cmd := exec.Command("mpg123", "-Z", "-q", audio)
cmd := exec.Command("mpg123", audio)
cmd.Start()
}

Expand Down

0 comments on commit 3310bfa

Please sign in to comment.