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

21 lines
407 B
Go

// +build pi3
package main
import (
"os/exec"
"bitbucket.org/ausocean/utils/logger"
)
const audioCmd = "omxplayer"
func initCommand(log *logger.Logger) {
// Making sure that omxplayer command is on the pi.
path, err := exec.LookPath("omxplayer")
if err != nil {
log.Log(logger.Fatal, "didn't find 'omxplayer' executable")
}
log.Log(logger.Debug, "'omxplayer' executable path", "path", path)
}