From a4d520da083ebecc08e71e14f5932c7753651204 Mon Sep 17 00:00:00 2001 From: alanbjohnston Date: Tue, 6 Jul 2021 15:15:21 -0400 Subject: [PATCH] added grep for Loopback fora play --- groundstation/sstv_decode_iss.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/groundstation/sstv_decode_iss.sh b/groundstation/sstv_decode_iss.sh index 64ca0b4e..da19a72b 100755 --- a/groundstation/sstv_decode_iss.sh +++ b/groundstation/sstv_decode_iss.sh @@ -33,5 +33,9 @@ qsstv & sleep 5 -rtl_fm -M fm -f 145.8M -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 145.8M -s 48k | aplay -D hw:${2:0:1},0,0 -r 48000 -t raw -f S16_LE -c 1 $SHELL