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
|
2012-07-28 01:30:20 +02:00
|
|
|
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
|
2012-07-28 01:30:20 +02:00
|
|
|
parec -d "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" --raw --rate=44100 --channels=1 --format=s16 | ./musiclight2 $*
|
2012-07-13 21:18:35 +02:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|