Skip to content

Commit b3d0f80

Browse files
committed
Update librespot dependency
1 parent 2f8d58d commit b3d0f80

File tree

6 files changed

+163
-70
lines changed

6 files changed

+163
-70
lines changed

Cargo.lock

+74-58
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ tokio-io = "0.1"
3131
tokio-signal = "0.1"
3232
url = "1.7"
3333
xdg = "2.2"
34-
librespot = { version = "0.1.1", default-features = false, features = ["with-tremor"] }
34+
librespot = { version = "0.1.3", default-features = false, features = ["with-tremor"] }
3535
toml = "0.5.6"
3636
color-eyre = "0.5"
3737

src/config.rs

+1
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,7 @@ pub(crate) fn get_internal_config(config: CliConfig) -> SpotifydConfig {
693693
bitrate,
694694
normalisation: config.shared_config.volume_normalisation,
695695
normalisation_pregain,
696+
gapless: true,
696697
},
697698
session_config: SessionConfig {
698699
user_agent: version::version_string(),

src/main_loop.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use librespot::{
99
},
1010
core::{
1111
cache::Cache,
12-
config::{ConnectConfig, DeviceType, SessionConfig},
12+
config::{ConnectConfig, DeviceType, SessionConfig, VolumeCtrl},
1313
session::Session,
1414
},
1515
playback::{
@@ -94,7 +94,7 @@ pub(crate) struct MainLoopState {
9494
pub(crate) session_config: SessionConfig,
9595
pub(crate) handle: Handle,
9696
pub(crate) autoplay: bool,
97-
pub(crate) linear_volume: bool,
97+
pub(crate) volume_ctrl: VolumeCtrl,
9898
pub(crate) initial_volume: Option<u16>,
9999
pub(crate) running_event_program: Option<Child>,
100100
pub(crate) shell: String,
@@ -170,7 +170,7 @@ impl Future for MainLoopState {
170170
name: self.spotifyd_state.device_name.clone(),
171171
device_type: self.device_type,
172172
volume: self.initial_volume.unwrap_or_else(|| mixer.volume()),
173-
linear_volume: self.linear_volume,
173+
volume_ctrl: self.volume_ctrl.clone(),
174174
},
175175
session.clone(),
176176
player,

0 commit comments

Comments
 (0)