More cleanup; correct the value of NSMAX in GUI.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2639 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor
2012-10-03 15:42:13 +00:00
parent fd8b86cef2
commit d0997e4740
11 changed files with 25 additions and 185 deletions
+5 -5
View File
@@ -2,12 +2,12 @@
#include <stdexcept>
#define FRAMES_PER_BUFFER 1024
#define NSMAX 10000
#define NSMAX 22000
extern "C" {
#include <portaudio.h>
extern struct {
short int d2[1800*12000]; //This is "common/jt8com/..." in fortran
short int d2[1800*12000]; //This is "common/jt9com/..." in fortran
float ss[184*NSMAX];
float savg[NSMAX];
double fcenter; //USB dial freq (kHz)
@@ -28,7 +28,7 @@ extern struct {
int kin;
int kline;
char datetime[20];
} jt8com_;
} jt9com_;
}
typedef struct
@@ -67,9 +67,9 @@ extern "C" int a2dCallback( const void *inputBuffer, void *outputBuffer,
nbytes=2*framesToProcess; //Bytes per frame
k=udata->kin;
memcpy(&jt8com_.d2[k],inputBuffer,nbytes); //Copy all samples to d2
memcpy(&jt9com_.d2[k],inputBuffer,nbytes); //Copy all samples to d2
udata->kin += framesToProcess;
jt8com_.kin=udata->kin;
jt9com_.kin=udata->kin;
return paContinue;
}