Reorder standalone options order
Backend agnostic audio options should come before backend specific ones.
This commit is contained in:
parent
045598aa09
commit
7c92167d85
|
@ -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<String>,
|
||||
/// 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<String>,
|
||||
|
||||
/// 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<String>,
|
||||
/// 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<String>,
|
||||
|
||||
/// 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
|
||||
|
|
Loading…
Reference in a new issue