mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2026-06-09 01:14:51 -04:00
Fix the "changed modes" problem in soundout.cpp.
Move the ptt function into the Qt-managed code. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2699 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
+5
-2
@@ -32,14 +32,16 @@ extern "C" int d2aCallback(const void *inputBuffer, void *outputBuffer,
|
||||
short *wptr = (short*)outputBuffer;
|
||||
|
||||
static double twopi=2.0*3.141592653589793238462;
|
||||
static double baud=12000.0/udata->nsps;
|
||||
static double baud;
|
||||
static double phi=0.0;
|
||||
static double dphi;
|
||||
static double freq;
|
||||
static double snr;
|
||||
static double fac;
|
||||
static int ic=0;
|
||||
static int isym0=-99;
|
||||
static short int i2;
|
||||
int isym;
|
||||
|
||||
if(udata->bRestart) {
|
||||
// Time according to this computer
|
||||
@@ -49,8 +51,9 @@ extern "C" int d2aCallback(const void *inputBuffer, void *outputBuffer,
|
||||
ic=(mstr-1000)*12;
|
||||
udata->bRestart=false;
|
||||
}
|
||||
int isym=ic/udata->nsps;
|
||||
isym=ic/udata->nsps;
|
||||
if(isym>=85) return 0;
|
||||
baud=12000.0/udata->nsps;
|
||||
freq=udata->ntxfreq + itone[isym]*baud;
|
||||
dphi=twopi*freq/12000.0;
|
||||
if(udata->txsnrdb < 0.0) {
|
||||
|
||||
Reference in New Issue
Block a user