@@ -809,15 +809,15 @@ impl<'a> Device<'a> {
809809 // This fader has previously been 'Muted to All', we need to restore the volume..
810810 let previous_volume = self . profile . get_mute_button_previous_volume ( fader) ;
811811
812- self . goxlr . set_volume ( channel, previous_volume) ?;
813- self . profile . set_channel_volume ( channel, previous_volume) ?;
814-
815812 if channel != ChannelName :: Mic
816813 || ( channel == ChannelName :: Mic && !self . mic_muted_by_cough ( ) )
817814 {
818815 self . goxlr . set_channel_state ( channel, Unmuted ) ?;
819816 }
820817
818+ self . goxlr . set_volume ( channel, previous_volume) ?;
819+ self . profile . set_channel_volume ( channel, previous_volume) ?;
820+
821821 // As before, we might need transient Mic Routing..
822822 if channel == ChannelName :: Chat {
823823 self . apply_routing ( BasicInputDevice :: Microphone ) ?;
@@ -2669,11 +2669,17 @@ impl<'a> Device<'a> {
26692669 if let Some ( current) = current {
26702670 if current != Muted {
26712671 // This channel should be fully muted
2672- debug ! ( "Setting Channel set {} to Muted" , channel) ;
2672+ debug ! (
2673+ "Setting Channel {} to Muted (change from previous)" ,
2674+ channel
2675+ ) ;
26732676 self . goxlr . set_channel_state ( channel, Muted ) ?;
26742677 } else {
26752678 debug ! ( "Fader {} is Already Muted, doing nothing." , fader) ;
26762679 }
2680+ } else {
2681+ debug ! ( "Setting Channel {} to Muted (no previous)" , channel) ;
2682+ self . goxlr . set_channel_state ( channel, Muted ) ?;
26772683 }
26782684
26792685 return Ok ( ( ) ) ;
@@ -2682,11 +2688,14 @@ impl<'a> Device<'a> {
26822688 // This channel isn't supposed to be muted (The Router will handle anything else).
26832689 if let Some ( current) = current {
26842690 if current != Unmuted {
2685- debug ! ( "Channel {} set to Unmuted" , channel) ;
2691+ debug ! ( "Channel {} set to Unmuted (change from previous) " , channel) ;
26862692 self . goxlr . set_channel_state ( channel, Unmuted ) ?;
26872693 } else {
26882694 debug ! ( "Channel {} already Unmuted, doing nothing." , fader) ;
26892695 }
2696+ } else {
2697+ debug ! ( "Channel {} set to Unmuted (no previous)" , channel) ;
2698+ self . goxlr . set_channel_state ( channel, Unmuted ) ?;
26902699 }
26912700
26922701 Ok ( ( ) )
0 commit comments