2021-12-15 00:42:31 +00:00
|
|
|
#!/bin/bash -x
|
|
|
|
# Run a test using the virtual sound cards, tx sound I/O performed by Python,
|
|
|
|
# rx using arecord, Fs=48000Hz
|
|
|
|
|
|
|
|
MAX_RUN_TIME=2600
|
|
|
|
|
|
|
|
# make sure all child processes are killed when we exit
|
|
|
|
trap 'jobs -p | xargs -r kill' EXIT
|
|
|
|
|
|
|
|
arecord -r 48000 --device="plughw:CARD=CHAT1,DEV=0" -f S16_LE -d $MAX_RUN_TIME | \
|
2021-12-16 07:14:07 +00:00
|
|
|
python3 test_rx.py --mode datac0 --frames 2 --bursts 5 --debug --timeout 20 &
|
2021-12-15 00:42:31 +00:00
|
|
|
rx_pid=$!
|
|
|
|
sleep 1
|
2021-12-16 07:14:07 +00:00
|
|
|
python3 test_tx.py --mode datac0 --frames 2 --bursts 5 --delay 2000 --audiodev -2
|
2021-12-15 00:42:31 +00:00
|
|
|
wait ${rx_pid}
|