We are now plotting a green line. (Needs more work, though.)

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/jtms3@2501 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor
2012-07-07 18:10:39 +00:00
parent a09cd784af
commit 6e72f74395
9 changed files with 91 additions and 148 deletions
+5 -5
View File
@@ -12,12 +12,12 @@ void getfile(QString fname, bool xpol, int dbDgrd)
FILE* fp=fopen(name,"rb");
int npts=30*48000;
memset(datcom_.d2,0,2*npts);
memset(mscom_.d2,0,2*npts);
if(fp != NULL) {
// Read (and ignore) a 44-byte WAV header; then read data
fread(datcom_.d2,1,44,fp);
int nrd=fread(datcom_.d2,2,npts,fp);
fread(mscom_.d2,1,44,fp);
int nrd=fread(mscom_.d2,2,npts,fp);
qDebug() << "Getfile" << npts << nrd;
fclose(fp);
}
@@ -76,9 +76,9 @@ void savewav(QString fname)
hdr.ndata=2*npts;
fwrite(&hdr,sizeof(hdr),1,fp);
// memcpy(datcom_.d2,buf,2*npts);
// memcpy(mscom_.d2,buf,2*npts);
// fwrite(buf,2,npts,fp);
fwrite(datcom_.d2,2,npts,fp);
fwrite(mscom_.d2,2,npts,fp);
fclose(fp);
}
// free(buf);