aboutsummaryrefslogtreecommitdiffstats
path: root/src/c_player.go
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-03-24 15:49:43 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2022-03-24 15:49:43 +0100
commit593454e12c6337a9483c86d3ab92351e2ceca55b (patch)
tree0e30aedc0a1049f55ecb358fdcf68a6fbb52fc1a /src/c_player.go
parentFirst commit (diff)
downloadgo2work-593454e12c6337a9483c86d3ab92351e2ceca55b.tar.gz
go2work-593454e12c6337a9483c86d3ab92351e2ceca55b.tar.bz2
go2work-593454e12c6337a9483c86d3ab92351e2ceca55b.tar.xz
go2work-593454e12c6337a9483c86d3ab92351e2ceca55b.tar.zst
go2work-593454e12c6337a9483c86d3ab92351e2ceca55b.zip
Learning in progress
Diffstat (limited to '')
-rw-r--r--src/c_player.go17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/c_player.go b/src/c_player.go
index 539fe9c..399f90e 100644
--- a/src/c_player.go
+++ b/src/c_player.go
@@ -49,15 +49,16 @@ package main
import (
"fmt"
- "log"
+ // "log"
"os/exec"
)
-func exec_player(file string) {
- fmt.Println("Playing: " + file)
- cmd := exec.Command("mpv", "--really-quiet", file)
- err := cmd.Run();
- if err != nil {
- log.Fatal(err)
- }
+func exec_player(args ...string) {
+ fmt.Println("Playing: " + args[len(args) - 1])
+ cmd := exec.Command(args)
+ // cmd := exec.Command("mpv", file)
+ // err := cmd.Run();
+ // if err != nil {
+ // log.Fatal(err)
+ // }
}