]> git.rkrishnan.org Git - pihpsdr.git/commitdiff
Reverted function of the "Mute audio to radio" check-box to its
authorc vw <dl1ycf@darc.de>
Fri, 14 Jan 2022 09:48:54 +0000 (10:48 +0100)
committerc vw <dl1ycf@darc.de>
Fri, 14 Jan 2022 09:48:54 +0000 (10:48 +0100)
original meaning since a majority of the "voters" are in favour
of this.

receiver.c

index f3a8e3814b57eeb00aac6ca68194dce2adbf3958..37e652bfd55b900f38ddb9350025a24fd84ff2eb 100644 (file)
@@ -1396,7 +1396,16 @@ static void process_rx_buffer(RECEIVER *rx) {
     }
 
     if(rx->local_audio) {
-      if((rx!=active_receiver && rx->mute_when_not_active)) {
+      //
+      // I received many comments on the "expected" function of the
+      // "Mute audio to radio" checkbox in the RX menu.
+      //
+      // 1    vote  was :  mute_radio should *only* mute the samples sent to the radio
+      // Many votes were: mute_radio should *also* mute the samples sent to local audio
+      //
+      // So this is now reverted to the original situation, respecting the "majority"
+      //
+      if((rx!=active_receiver && rx->mute_when_not_active) || rx->mute_radio) {
         left_sample=0.0;
         right_sample=0.0;
       } else {