add persist-volume to ConnectConfig

This commit is contained in:
Brice Delli Paoli 2018-05-10 12:02:02 -04:00
parent e23c2336c9
commit fa66dd312b
3 changed files with 4 additions and 0 deletions

View file

@ -25,6 +25,7 @@ pub struct SpircTask {
player: Player,
mixer: Box<Mixer>,
linear_volume: bool,
persist_volume: Option<String>,
sequence: SeqGenerator<u32>,
@ -243,6 +244,7 @@ impl Spirc {
player: player,
mixer: mixer,
linear_volume: linear_volume,
persist_volume: persist_volume,
sequence: SeqGenerator::new(1),

View file

@ -83,4 +83,5 @@ pub struct ConnectConfig {
pub device_type: DeviceType,
pub volume: i32,
pub linear_volume: bool,
pub persist_volume: Option<String>,
}

View file

@ -305,6 +305,7 @@ fn setup(args: &[String]) -> Setup {
device_type: device_type,
volume: initial_volume,
linear_volume: matches.opt_present("linear-volume"),
persist_volume: persist_volume,
}
};