File: btmpg123

package info (click to toggle)
affix 2.1.1-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,908 kB
  • ctags: 1,247
  • sloc: ansic: 13,807; sh: 7,119; yacc: 232; makefile: 152; lex: 126; python: 56
file content (18 lines) | stat: -rwxr-xr-x 303 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
#
#   $Id: btmpg123,v 1.7 2003/04/29 12:46:24 kds Exp $
#

set -e

if [ "$#" -lt 2 ] ; then
	echo "usage: btmpg123 <bda> <file>"
	exit 1
fi

bda=$1
file=$2

#btctl audio on sync setting 0x40
mpg123 -s "$file" | sox -t raw -r 44100 -s -w -c 2 - -t raw -r 8000 -s -b -c 1 - | btctl play $bda -