From: DL1YCF Date: Mon, 24 May 2021 08:32:10 +0000 (+0200) Subject: Do not call cw_audio_write if no local audio active X-Git-Url: https://git.rkrishnan.org/listings/vdrive/index.php?a=commitdiff_plain;h=3babf003d0a97a8998e2a4b9d04809b0193d83c9;p=pihpsdr.git Do not call cw_audio_write if no local audio active --- diff --git a/transmitter.c b/transmitter.c index e2a74ac..3748214 100644 --- a/transmitter.c +++ b/transmitter.c @@ -1422,7 +1422,7 @@ void add_mic_sample(TRANSMITTER *tx,float mic_sample) { // side tone ramp=cwramp48[cw_shape]; cwsample=0.00197 * getNextSideToneSample() * cw_keyer_sidetone_volume * ramp; - cw_audio_write(active_receiver, cwsample); + if(active_receiver->local_audio) cw_audio_write(active_receiver, cwsample); cw_shape_buffer48[tx->samples]=ramp; // // In the new protocol, we MUST maintain a constant flow of audio samples to the radio