musiclight2/run_pa.sh
Thomas Kolb 0a76acd85b Ported musiclight to RGBW LEDs
Not all scripts are ported yet...
2018-06-24 22:23:39 +02:00

20 lines
425 B
Bash
Executable file

#!/bin/sh
#parec -d "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" --channels=1 --format=s16 | mbuffer -R 88200 | ./musiclight2
MODE="$1"
shift
case "$MODE" in
mic)
#mikro
parec -d "alsa_input.pci-0000_00_1b.0.analog-stereo" --raw --rate=44100 --channels=1 --format=s16 | ./musiclight2 $*
;;
*)
# soundkarte
parec --raw --rate=44100 --channels=1 --format=s16 | ./musiclight2 $*
;;
esac