CXBbase(tx.buf.o));
tx.agc.flag = TRUE;
- tx.spr.gen = newSpeechProc(0.4, 10.0, CXBbase(tx.buf.o), CXBsize(tx.buf.o));
+ tx.spr.gen = newSpeechProc(0.4, 10.0, CXBbase(tx.buf.i), CXBsize(tx.buf.o));
tx.spr.flag = FALSE;
tx.cpd.gen = newWSCompander(uni.cpdlen,
0.0,
- tx.buf.o);
+ tx.buf.i);
tx.cpd.flag = FALSE;
tx.scl.dc = cxzero;
case PWR:
for(i = 0, uni.meter.tx.val[tap] = 1e-20; i < CXBhave(tx.buf.o); i++)
uni.meter.tx.val[tap] += Csqrmag(CXBdata(tx.buf.o, i));
- uni.meter.tx.val[tap] /= 2048.0;
+ uni.meter.tx.val[tap] /= uni.buflen;
break;
case PKPWR:
for(i = 0, uni.meter.tx.val[tap] = 1e-20; i < CXBhave(tx.buf.o); i++)
if (tx.dcb.flag) DCBlock(tx.dcb.gen);
+ if (tx.spr.flag) SpeechProcessor(tx.spr.gen);
+ if (tx.cpd.flag) WSCompand(tx.cpd.gen);
+
if (tx.tick == 0) reset_OvSv(tx.filt.ovsv);
filter_OvSv(tx.filt.ovsv);
CXBdata(tx.buf.o, i) = Cscl(CXBdata(tx.buf.o, i), tx.scl.post.val);
}
- if (tx.spr.flag) SpeechProcessor(tx.spr.gen);
- if (tx.cpd.flag) WSCompand(tx.cpd.gen);
-
if (uni.spec.flag)
do_tx_spectrum(tx.buf.o);