From e8b23b37394800332baf1ffc9b9777c67dc664cd Mon Sep 17 00:00:00 2001 From: Stephane Desneux Date: Sat, 21 Jul 2018 16:17:44 +0200 Subject: change media paths Change-Id: I0d4783d37da25a315073eb847c7f525ed1b51d5c Signed-off-by: Stephane Desneux --- bin/4a-play | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'bin/4a-play') diff --git a/bin/4a-play b/bin/4a-play index 894ab7f..483b892 100755 --- a/bin/4a-play +++ b/bin/4a-play @@ -1 +1,17 @@ -# TODO: play using aplay +#!/bin/bash + +# load shell lib +. $(dirname $BASH_SOURCE)/lib4a-tools.sh + +function usage() { + log "Usage: $0 [role:file2 ...]" + log "Available roles:" + exit 1 +} + +[[ $# == 0 ]] && usage + +for x in "$@"; do + log "Playing $x ..." + aplay -D Loopback,0,2 $x +done -- cgit 1.2.3-korg