diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2002-12-21 15:40:33 +0000 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2002-12-21 15:40:33 +0000 |
commit | 7490b6c61bfa0b581ff7a15f6482787973cf7e3f (patch) | |
tree | ffdcc48949262bedd358df3534bc637715f162fc /test/hsmicro | |
parent | 34e63ae877d59207762da9f96e414a704c825393 (diff) |
Add Headset Test utility
Diffstat (limited to 'test/hsmicro')
-rwxr-xr-x | test/hsmicro | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/test/hsmicro b/test/hsmicro new file mode 100755 index 00000000..8aec68f2 --- /dev/null +++ b/test/hsmicro @@ -0,0 +1,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 -b - -t ossdsp -r 44100 -c 2 -s -w /dev/dsp polyphase vol 5.0 2> /dev/null |