From a6da6ad0fc22d38b87108b47008fe974e9d70a87 Mon Sep 17 00:00:00 2001 From: DL1YCF Date: Tue, 1 Jun 2021 17:02:01 +0200 Subject: [PATCH] "block" audio_write() if transmitting in CW --- pulseaudio.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pulseaudio.c b/pulseaudio.c index 3ea4457..59a7449 100644 --- a/pulseaudio.c +++ b/pulseaudio.c @@ -10,6 +10,7 @@ #include "mode.h" #include "new_protocol.h" #include "old_protocol.h" +#include "vfo.h" #ifdef SOAPYSDR #include "soapy_protocol.h" #endif @@ -368,6 +369,11 @@ int audio_write(RECEIVER *rx,float left_sample,float right_sample) { int result=0; int rc; int err; + int txmode=get_tx_mode(); + + if (rx == active_receiver && isTransmitting() && (txmode==modeCWU || txmode==modeCWL)) { + return 0; + } g_mutex_lock(&rx->local_audio_mutex); -- 2.45.2