mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-07-30 14:04:12 -04:00
1. Click on spectrum sets Rx freq; double-click also invokes narrow-band
decoder at the new frequency. CTRL-click (or CTRL-double-click) sets both Rx and Tx freqs. 2. Amplitude at end of transmission is ramped down to prevent a "key click". git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3139 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+7
-1
@@ -96,10 +96,15 @@ extern "C" int d2aCallback(const void *inputBuffer, void *outputBuffer,
|
||||
baud=12000.0/udata->nsps;
|
||||
freq=udata->ntxfreq + itone[isym]*baud;
|
||||
dphi=twopi*freq/48000.0;
|
||||
double amp=32767.0;
|
||||
int i0=84.983*4.0*udata->nsps;
|
||||
for(uint i=0 ; i<framesToProcess; i++ ) {
|
||||
phi += dphi;
|
||||
if(phi>twopi) phi -= twopi;
|
||||
i2=32767.0*sin(phi);
|
||||
if(ic>i0) {
|
||||
amp=0.98*amp;
|
||||
}
|
||||
i2=amp*sin(phi);
|
||||
if(udata->txsnrdb < 0.0) {
|
||||
int i4=fac*(gran() + i2*snr/32768.0);
|
||||
if(i4>32767) i4=32767;
|
||||
@@ -113,6 +118,7 @@ extern "C" int d2aCallback(const void *inputBuffer, void *outputBuffer,
|
||||
#endif
|
||||
ic++;
|
||||
}
|
||||
if(amp<1.0 and itone[0]>=0) return paComplete;
|
||||
return paContinue;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user