* send signal / noise composite audio to waterfall during
    transmit
    - valid when using --noise command line parameter
pull/4/head
David Freese 2016-03-09 09:04:33 -06:00
rodzic 6da8d51d68
commit 8eb05e63dc
1 zmienionych plików z 8 dodań i 6 usunięć

Wyświetl plik

@ -472,12 +472,12 @@ void modem::ModulateXmtr(double *buffer, int len)
return;
}
if (withnoise) add_noise(buffer, len);
if (progdefaults.viewXmtSignal &&
!(PERFORM_CPS_TEST || active_modem->XMLRPC_CPS_TEST))
trx_xmit_wfall_queue(samplerate, buffer, (size_t)len);
if (withnoise) add_noise(buffer, len);
double mult = pow(10, progdefaults.txlevel / 20.0);
if (mult > 0.99) mult = 0.99;
for (int i = 0; i < len; i++) {
@ -511,12 +511,12 @@ void modem::ModulateStereo(double *left, double *right, int len, bool sample_fla
if(sample_flag)
tx_sample_count += len;
if (withnoise && progdefaults.noise) add_noise(left, len);
if (progdefaults.viewXmtSignal &&
!(PERFORM_CPS_TEST || active_modem->XMLRPC_CPS_TEST))
trx_xmit_wfall_queue(samplerate, left, (size_t)len);
if (withnoise && progdefaults.noise) add_noise(left, len);
double mult = pow(10, progdefaults.txlevel / 20.0);
if (mult > 0.99) mult = 0.99;
@ -553,12 +553,12 @@ void modem::ModulateVideoStereo(double *left, double *right, int len, bool sampl
if(sample_flag)
tx_sample_count += len;
if (withnoise && progdefaults.noise) add_noise(left, len);
if (progdefaults.viewXmtSignal &&
!(PERFORM_CPS_TEST || active_modem->XMLRPC_CPS_TEST))
trx_xmit_wfall_queue(samplerate, left, (size_t)len);
if (withnoise && progdefaults.noise) add_noise(left, len);
double mult = 0.99 * pow(10, progdefaults.txlevel / 20.0);
for (int i = 0; i < len; i++) {
@ -596,6 +596,8 @@ void modem::ModulateVideo(double *buffer, int len)
return;
}
if (withnoise && progdefaults.noise) add_noise(buffer, len);
if (progdefaults.viewXmtSignal &&
!(PERFORM_CPS_TEST || active_modem->XMLRPC_CPS_TEST))
trx_xmit_wfall_queue(samplerate, buffer, (size_t)len);