Browse Source

[run-scripts] Fixed some bugs

lua
Thomas Kolb 7 years ago
parent
commit
cc276ffc7e
2 changed files with 5 additions and 2 deletions
  1. 1
    1
      run_alsa.sh
  2. 4
    1
      run_pa.sh

+ 1
- 1
run_alsa.sh View File

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

+ 4
- 1
run_pa.sh View File

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

Loading…
Cancel
Save