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" FD="/dev/sda"
FLOPPY="/media/floppy" FLOPPY="/media/floppy"
MAINPY="${FLOPPY}/main.py" MAINPY="${FLOPPY}/main.py"
MAINPYRUN="python ${MAINPY}" PYRUN="python ${MAINPY}"
MAINPD="${FLOPPY}/main.pd" MAINPD="${FLOPPY}/main.pd"
PDRUN="pd -jack -rt -r 48000 -nogui ${MAINPD}"
stdbuf -oL -- udevadm monitor --udev -p ${FD} | while read -r -- STATE _ _ _ _ stdbuf -oL -- udevadm monitor --udev -p ${FD} | while read -r -- STATE _ _ _ _
do do
@ -19,12 +20,12 @@ do
if [ -e "${MAINPY}" ] if [ -e "${MAINPY}" ]
then then
echo "main.py found" echo "main.py found"
$(${MAINPYRUN})& $(${PYRUN})&
fi fi
if [ -e "${MAINPD}" ] if [ -e "${MAINPD}" ]
then then
echo "main.pd found" echo "main.pd found"
$(pd -rt -nogui ${MAINPD})& $(${PDRUN})&
fi fi
else else
echo "floppy out (no fs detected)" echo "floppy out (no fs detected)"

Loading…
Cancel
Save