From d767ee64373cb402e785a528254b0519a20c0e31 Mon Sep 17 00:00:00 2001
From: c vw <dl1ycf@darc.de>
Date: Fri, 14 Jan 2022 10:48:54 +0100
Subject: [PATCH] Reverted function of the "Mute audio to radio" check-box to
 its original meaning since a majority of the "voters" are in favour of this.

---
 receiver.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/receiver.c b/receiver.c
index f3a8e38..37e652b 100644
--- a/receiver.c
+++ b/receiver.c
@@ -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 {
-- 
2.45.2