From e44d91c01657c61f4b2a66266f1eb55a0dfa3860 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 25 Feb 2023 16:11:17 +0100 Subject: [PATCH] Add standalone CLI options for MIDI IO with CPAL --- src/wrapper/standalone/config.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/wrapper/standalone/config.rs b/src/wrapper/standalone/config.rs index aff0a1f2..d75d40a0 100644 --- a/src/wrapper/standalone/config.rs +++ b/src/wrapper/standalone/config.rs @@ -44,6 +44,16 @@ pub struct WrapperConfig { /// Specifying an empty string or other invalid value will list all available output devices. #[clap(value_parser, long)] pub output_device: Option, + /// 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, + /// 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, /// 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