TurboAudio / turbo_audio

Sync your LED strips with music!
MIT License
6 stars 0 forks source link

Add command line arguments to select host, audio device, toggle jack audio server, and sample rate #4

Closed SGauvin closed 2 years ago

SGauvin commented 2 years ago

Add CLI args to remove hardcoded params in the code while keeping sane defaults

Output of the program:

cargo run -- --help
Haha brr

Usage: turbo_audio [OPTIONS]

Options:
      --device-name <DEVICE_NAME>  Name of the input audio device to choose
      --jack                       Toggle if Jack should be used as the audio host
      --sample-rate <SAMPLE_RATE>  Sample rate of the input stream [default: 48000]
  -h, --help                       Print help information
  -V, --version                    Print version information