chore: align subscriptions with local stack
This commit is contained in:
parent
16172ad5a3
commit
f19473a05c
12 changed files with 32 additions and 26 deletions
|
|
@ -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"
|
||||
|
|
|
|||
|
|
@ -288,7 +288,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])
|
||||
|
|
@ -299,7 +299,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])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue