Sound2Light auf RGB(W)-LED-Leisten
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

run_pa.sh 481B

12345678910111213141516171819
  1. #!/bin/sh
  2. #parec -d "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" --channels=1 --format=s16 | mbuffer -R 88200 | ./musiclight2
  3. MODE="$1"
  4. shift
  5. case "$MODE" in
  6. mic)
  7. #mikro
  8. parec -d "alsa_input.pci-0000_00_1b.0.analog-stereo" --raw --rate=44100 --channels=1 --format=s16 | ./musiclight2 $*
  9. ;;
  10. *)
  11. # soundkarte
  12. parec -d "alsa_output.pci-0000_00_1b.0.analog-stereo.monitor" --raw --rate=44100 --channels=1 --format=s16 | ./musiclight2 $*
  13. ;;
  14. esac