chore: align subscriptions with local stack

This commit is contained in:
Lionel DARNIS 2026-05-23 20:49:24 +02:00
parent 553c05e2f0
commit 32d71847b6
10 changed files with 12 additions and 12 deletions

View file

@ -7,6 +7,6 @@ rust-version.workspace = true
[dependencies]
libpulse-binding = { version = "2.30.1" }
rustix = { version = "1.1.3", features = ["pipe"] }
iced_futures = { git = "https://github.com/pop-os/libcosmic" }
iced_futures = { path = "../../../libcosmic/iced/futures" }
futures = "0.3.32"
log = "0.4.27"

View file

@ -281,7 +281,7 @@ impl PulseChannels {
/// Set the speaker balance of the active sink.
pub fn set_balance(&mut self, balance: f32) {
if let Err(err) = self.tx.send(Request::Balance(self.index, balance)) {
log::error!("Failed to send new balance to channel");
log::error!("Failed to send new balance to channel: {err}");
} else {
self.pipe_tx
.write_all(&[1])
@ -292,7 +292,7 @@ impl PulseChannels {
/// Set the volume of the active sink.
pub fn set_volume(&mut self, volume: f32) {
if let Err(err) = self.tx.send(Request::Volume(self.index, volume)) {
log::error!("Failed to send new volume to channel");
log::error!("Failed to send new volume to channel: {err}");
} else {
self.pipe_tx
.write_all(&[1])