musiclight2/run_pa.sh

20 lines
425 B
Bash
Raw Normal View History

2012-07-13 21:18:35 +02:00
#!/bin/sh
#parec -d "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" --channels=1 --format=s16 | mbuffer -R 88200 | ./musiclight2
2012-08-08 23:01:00 +02:00
MODE="$1"
shift
case "$MODE" in
2012-07-13 21:18:35 +02:00
mic)
#mikro
parec -d "alsa_input.pci-0000_00_1b.0.analog-stereo" --raw --rate=44100 --channels=1 --format=s16 | ./musiclight2 $*
2012-07-13 21:18:35 +02:00
;;
*)
# soundkarte
parec --raw --rate=44100 --channels=1 --format=s16 | ./musiclight2 $*
2012-07-13 21:18:35 +02:00
;;
esac