[run-scripts] Fixed some bugs
This commit is contained in:
parent
751ef5f24d
commit
cc276ffc7e
|
@ -1,3 +1,3 @@
|
|||
#!/bin/sh
|
||||
|
||||
arecord -c 1 -f s16 -r 22050 | ./musiclight2 $*
|
||||
arecord -c 1 -f s16 -r 44100 | ./musiclight2 $*
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
|
||||
#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)
|
||||
#mikro
|
||||
parec -d "alsa_input.pci-0000_00_1b.0.analog-stereo" --raw --rate=44100 --channels=1 --format=s16 | ./musiclight2 $*
|
||||
|
|
Loading…
Reference in a new issue