@ -35,7 +35,7 @@ func PlayWAVFile(filename string, stopPlaying *bool) error {
beep.Seq(streamer, callbackFunc),
)
for done == false {
for !done {
if *stopPlaying {
break
}
@ -84,11 +84,7 @@ func DownloadFile(filename, url string) bool {
defer resp.Body.Close()
_, err = io.Copy(out, resp.Body)
if err != nil {
return false
return true
return err == nil
func SendNotification(title string, message string) bool {