4
Fork 0
This commit is contained in:
Artem Prilutskiy 2017-05-27 10:25:02 +03:00
commit 5caace3ebf
4 changed files with 12 additions and 7 deletions

5
.gitignore vendored Normal file
View file

@ -0,0 +1,5 @@
play.conf
md380-emu
digestplay
*.o
*.d

View file

@ -1,3 +0,0 @@
CLIENT=250901
PASSWORD=fvyYWXBo
SERVER=master-test.dstar.su

5
play.sample.conf Normal file
View file

@ -0,0 +1,5 @@
CONVERTER="/usr/bin/qemu-arm ./md380-emu"
PLAYER="./digestplay"
CLIENT=2049999
PASSWORD=fvyYWXBo
SERVER=213.222.29.197

6
play.sh Normal file → Executable file
View file

@ -3,11 +3,9 @@
DIRECTORY=$(dirname $0) DIRECTORY=$(dirname $0)
. $DIRECTORY/play.conf . $DIRECTORY/play.conf
CONVERTER="/usr/bin/qemu-arm /opt/MD380Tools/md380-emu" FILE=$(mktemp)
PLAYER="/opt/Tools/digestplay"
FILE=$(mktmp)
sox $1 -c1 -r8000 -b16 --encoding signed-integer -L $FILE.raw sox $1 -c1 -r8000 -b16 --encoding signed-integer -L --norm=-25 $FILE.raw
$CONVERTER -e -i $FILE.raw -o /dev/stdout | \ $CONVERTER -e -i $FILE.raw -o /dev/stdout | \
$PLAYER \ $PLAYER \
--server-address $SERVER \ --server-address $SERVER \