blob: c254226b4d4efc24755db2266e590cb03f9b453b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#!/bin/sh
SOX=`which sox`
HSTEST=`which hstest`
if [ -z "$HSTEST" ]
then
HSTEST="./hstest"
fi
if [ -z "$1" ]
then
echo -e "Usage:\n\thsmicro <bdaddr> [channel]"
exit
fi
BDADDR=$1
CHANNEL=$2
$HSTEST record - $BDADDR $CHANNEL | $SOX -t raw -r 8000 -c 1 -s -w - -t ossdsp -r 44100 -c 2 -s -w /dev/dsp polyphase vol 5.0 2> /dev/null
|