Browse Source

[run-scripts] Fixed some bugs

lua
Thomas Kolb 8 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 @@
#!/bin/sh

arecord -c 1 -f s16 -r 22050 | ./musiclight2 $*
arecord -c 1 -f s16 -r 44100 | ./musiclight2 $*

+ 4
- 1
run_pa.sh 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

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…
Cancel
Save