From d167c758e0962a0aef2b533ed2ee48d625b7d737 Mon Sep 17 00:00:00 2001 From: root Date: Sun, 19 Mar 2017 21:21:37 +0100 Subject: [PATCH] only jack gives crack free usb audio on rpi --- sbin/thewhispererindarkness.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sbin/thewhispererindarkness.sh b/sbin/thewhispererindarkness.sh index 98ccab1..b44f255 100755 --- a/sbin/thewhispererindarkness.sh +++ b/sbin/thewhispererindarkness.sh @@ -4,8 +4,9 @@ FD="/dev/sda" FLOPPY="/media/floppy" MAINPY="${FLOPPY}/main.py" -MAINPYRUN="python ${MAINPY}" +PYRUN="python ${MAINPY}" MAINPD="${FLOPPY}/main.pd" +PDRUN="pd -jack -rt -r 48000 -nogui ${MAINPD}" stdbuf -oL -- udevadm monitor --udev -p ${FD} | while read -r -- STATE _ _ _ _ do @@ -19,12 +20,12 @@ do if [ -e "${MAINPY}" ] then echo "main.py found" - $(${MAINPYRUN})& + $(${PYRUN})& fi if [ -e "${MAINPD}" ] then echo "main.pd found" - $(pd -rt -nogui ${MAINPD})& + $(${PDRUN})& fi else echo "floppy out (no fs detected)"