only jack gives crack free usb audio on rpi

master
root 8 years ago
parent 167256bb98
commit d167c758e0

@ -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)"

Loading…
Cancel
Save