Skip to content

Commit 1f4b218

Browse files
Dynamically handle changes to faders MuteFunction
1 parent 380b669 commit 1f4b218

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

daemon/src/device.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1770,8 +1770,17 @@ impl<'a> Device<'a> {
17701770
}
17711771

17721772
// Unmute the channel to prevent weirdness, then set new behaviour
1773-
self.unmute_fader(fader).await?;
1773+
//self.unmute_fader(fader).await?;
17741774
self.profile.set_mute_button_behaviour(fader, behaviour);
1775+
1776+
// We'll pass 'None' into this as there's a guaranteed change..
1777+
self.apply_mute_from_profile(fader, None)?;
1778+
1779+
let channel = self.profile.get_fader_assignment(fader);
1780+
if BasicInputDevice::can_from(channel) {
1781+
let input = BasicInputDevice::from(channel);
1782+
self.apply_routing(input).await?;
1783+
}
17751784
}
17761785

17771786
GoXLRCommand::SetVolume(channel, volume) => {

0 commit comments

Comments
 (0)