1
0
Fork 0

Add standalone CLI options for MIDI IO with CPAL

This commit is contained in:
Robbert van der Helm 2023-02-25 16:11:17 +01:00
parent 7c92167d85
commit e44d91c016

View file

@ -44,6 +44,16 @@ pub struct WrapperConfig {
/// Specifying an empty string or other invalid value will list all available output devices. /// Specifying an empty string or other invalid value will list all available output devices.
#[clap(value_parser, long)] #[clap(value_parser, long)]
pub output_device: Option<String>, pub output_device: Option<String>,
/// The input MIDI device for the ALSA, CoreAudio, and WASAPI backends.
///
/// Specifying an empty string or other invalid value will list all available MIDI inputs.
#[clap(value_parser, long)]
pub midi_input: Option<String>,
/// The output output device for the ALSA, CoreAudio, and WASAPI backends.
///
/// Specifying an empty string or other invalid value will list all available MIDI output.
#[clap(value_parser, long)]
pub midi_output: Option<String>,
/// If set to a port name ('foo:bar_1'), then all all inputs will be connected to that port. If /// If set to a port name ('foo:bar_1'), then all all inputs will be connected to that port. If
/// the option is set to a comma separated list of port names ('foo:bar_1,foo:bar_2') then the /// the option is set to a comma separated list of port names ('foo:bar_1,foo:bar_2') then the