From 593454e12c6337a9483c86d3ab92351e2ceca55b Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Thu, 24 Mar 2022 15:49:43 +0100 Subject: Learning in progress --- src/c_go2work.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/c_go2work.go') diff --git a/src/c_go2work.go b/src/c_go2work.go index 0b8e4f9..3b4e4a3 100644 --- a/src/c_go2work.go +++ b/src/c_go2work.go @@ -54,13 +54,14 @@ import ( func main() { t := get_time() - ticker := time.NewTicker(1 * time.Second) + ticker := time.NewTicker(2 * time.Second) quit := make(chan struct{}) fmt.Println("Time is: " + t) + exec_player("mpv", "/home/jozan/mu/rock/grunge/nirvana/1993_in_utero/04_rape_me.flac") for { select { case <- ticker.C: - exec_player("/home/jozan/mu/rock/grunge/nirvana/1993_in_utero/04_rape_me.flac") + exec_player("mpv", "/home/jozan/mu/rock/grunge/nirvana/1993_in_utero/04_rape_me.flac") case <- quit: ticker.Stop() return -- cgit v1.2.3