From 624b5fe9a6778a6f86edd4a16ffb84f4474ac15a Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 6 Jul 2021 15:01:35 -0400 Subject: [PATCH] grep for Loopback number fora play --- groundstation/sstv_decode_sim.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/groundstation/sstv_decode_sim.sh b/groundstation/sstv_decode_sim.sh index fc07a33f..300895ee 100755 --- a/groundstation/sstv_decode_sim.sh +++ b/groundstation/sstv_decode_sim.sh @@ -37,6 +37,10 @@ sleep 5 #sudo systemctl restart cubesatsim -rtl_fm -M fm -f 434.9M -s 48k | aplay -D hw:2,0,0 -r 48000 -t raw -f S16_LE -c 1 +value=`aplay -l | grep "Loopback"` +echo "$value" > /dev/null +set -- $value + +rtl_fm -M fm -f 434.9M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 $SHELL