av/cmd/audio-player/looper/pi3.go

20 lines
350 B
Go

// +build pi3
package main
import (
"log"
"os/exec"
)
const audioCmd = "omxplayer"
func initCommand() {
// Making sure that omxplayer command is on the pi.
path, err := exec.LookPath("omxplayer")
if err != nil {
log.Fatalf("fatal: didn't find 'omxplayer' executable\n")
}
log.Printf("debug: 'omxplayer' executable is in '%s'\n", path)
}