summaryrefslogtreecommitdiffstats
path: root/bin/4a-play
blob: 483b8927406eb47e60d414856f344bd1196865cf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# load shell lib
. $(dirname $BASH_SOURCE)/lib4a-tools.sh

function usage() {
	log "Usage: $0 <role:file1> [role:file2 ...]"
	log "Available roles:"
	exit 1
}

[[ $# == 0 ]] && usage

for x in "$@"; do
	log "Playing $x ..."
	aplay -D Loopback,0,2 $x
done