Skip to content

Commit

Permalink
Actually send new channelVolumes.
Browse files Browse the repository at this point in the history
  • Loading branch information
saivert committed Jun 26, 2024
1 parent 5592af6 commit b07a6e4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/backend/pwnodeobject/mixerapi.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,7 @@ impl PwNodeObject {
}

pub(crate) fn send_volume_using_mixerapi(&self, what: PropertyChanged) {
let imp = self.imp();
let node = imp.wpnode.get().expect("node in send_volume");
let node = self.wpnode();
let manager = PwvucontrolManager::default();
let mixerapi = manager.mixer_api();
let bound_id = node.bound_id();
Expand Down Expand Up @@ -58,7 +57,7 @@ impl PwNodeObject {
*v = max;
}
}
if let Some(cv) = self.make_channel_volumes_variant(&self.channel_volumes_vec()) {
if let Some(cv) = self.make_channel_volumes_variant(&channel_volumes) {
variant.insert("channelVolumes", cv);
}
self.set_channel_volumes_vec_no_send(&channel_volumes);
Expand Down

0 comments on commit b07a6e4

Please sign in to comment.