diff --git a/connect/src/spirc.rs b/connect/src/spirc.rs index 6c766a4c..6e26f251 100644 --- a/connect/src/spirc.rs +++ b/connect/src/spirc.rs @@ -25,6 +25,7 @@ pub struct SpircTask { player: Player, mixer: Box, linear_volume: bool, + persist_volume: Option, sequence: SeqGenerator, @@ -243,6 +244,7 @@ impl Spirc { player: player, mixer: mixer, linear_volume: linear_volume, + persist_volume: persist_volume, sequence: SeqGenerator::new(1), diff --git a/core/src/config.rs b/core/src/config.rs index 3511ee3f..c3f90d01 100644 --- a/core/src/config.rs +++ b/core/src/config.rs @@ -83,4 +83,5 @@ pub struct ConnectConfig { pub device_type: DeviceType, pub volume: i32, pub linear_volume: bool, + pub persist_volume: Option, } diff --git a/src/main.rs b/src/main.rs index 60a7e1fd..2147ec46 100644 --- a/src/main.rs +++ b/src/main.rs @@ -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, } };