Skip to content

Commit

Permalink
Merge pull request #16 from cyrinux/unmute-source-without-active-port
Browse files Browse the repository at this point in the history
Unmute sources with no active port
  • Loading branch information
cyrinux authored Jun 15, 2024
2 parents 8b02b18 + f4a871d commit 4cdfc18
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/pulseaudio/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,11 @@ impl Controller {
};
trace!("device source: {:?}", src.description);
if toggle {
ctx_volume_controller
.set_source_mute_by_index(src.index, mute, None);
ctx_volume_controller.set_source_mute_by_index(
src.index,
src.active_port.is_some() && mute,
None,
);
}
}
});
Expand Down

0 comments on commit 4cdfc18

Please sign in to comment.