[run-scripts] Fixed some bugs

This commit is contained in:
Thomas Kolb 2012-08-08 23:01:00 +02:00
parent 751ef5f24d
commit cc276ffc7e
2 changed files with 5 additions and 2 deletions

View file

@ -1,3 +1,3 @@
#!/bin/sh #!/bin/sh
arecord -c 1 -f s16 -r 22050 | ./musiclight2 $* arecord -c 1 -f s16 -r 44100 | ./musiclight2 $*

View file

@ -2,7 +2,10 @@
#parec -d "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" --channels=1 --format=s16 | mbuffer -R 88200 | ./musiclight2 #parec -d "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" --channels=1 --format=s16 | mbuffer -R 88200 | ./musiclight2
case $1 in MODE="$1"
shift
case "$MODE" in
mic) mic)
#mikro #mikro
parec -d "alsa_input.pci-0000_00_1b.0.analog-stereo" --raw --rate=44100 --channels=1 --format=s16 | ./musiclight2 $* parec -d "alsa_input.pci-0000_00_1b.0.analog-stereo" --raw --rate=44100 --channels=1 --format=s16 | ./musiclight2 $*