From 7c92167d85b2f7a1f1b490e41580538f4526115c Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Sat, 25 Feb 2023 14:48:52 +0100 Subject: [PATCH] Reorder standalone options order Backend agnostic audio options should come before backend specific ones. --- src/wrapper/standalone/config.rs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/src/wrapper/standalone/config.rs b/src/wrapper/standalone/config.rs index 9e82c636..aff0a1f2 100644 --- a/src/wrapper/standalone/config.rs +++ b/src/wrapper/standalone/config.rs @@ -14,18 +14,6 @@ pub struct WrapperConfig { /// no audio input or output if the other backends are not available. #[clap(value_parser, short = 'b', long, default_value = "auto")] pub backend: BackendType, - /// The input device for the ALSA, CoreAudio, and WASAPI backends. No input will be connected if - /// this is not specified. - /// - /// Specifying an empty string or other invalid value will list all available input devices. - #[clap(value_parser, long)] - pub input_device: Option, - /// The output device for the ALSA, CoreAudio, and WASAPI backends. - /// - /// Specifying an empty string or other invalid value will list all available output devices. - #[clap(value_parser, long)] - pub output_device: Option, - /// The audio layout to use. Defaults to the first layout. /// /// Specifying an empty argument or other invalid value will list all available audio layouts. @@ -45,6 +33,18 @@ pub struct WrapperConfig { #[clap(value_parser, short = 'p', long, default_value = "512")] pub period_size: u32, + /// The input device for the ALSA, CoreAudio, and WASAPI backends. No input will be connected if + /// this is not specified. + /// + /// Specifying an empty string or other invalid value will list all available input devices. + #[clap(value_parser, long)] + pub input_device: Option, + /// The output device for the ALSA, CoreAudio, and WASAPI backends. + /// + /// Specifying an empty string or other invalid value will list all available output devices. + #[clap(value_parser, long)] + pub output_device: 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 /// input ports will be connected in that order. No inputs will be connected if the port option