Now reading from files.

git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/jtms3@2495 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
Joe Taylor
2012-07-06 20:31:42 +00:00
parent 20ba526656
commit ac38b48549
3 changed files with 16 additions and 20 deletions
+4 -4
View File
@@ -4,8 +4,6 @@
#include <stdlib.h>
#include <math.h>
extern qint16 id[4*60*96000];
void getfile(QString fname, bool xpol, int dbDgrd)
{
@@ -17,8 +15,10 @@ void getfile(QString fname, bool xpol, int dbDgrd)
memset(datcom_.d2,0,2*npts);
if(fp != NULL) {
// Should read WAV header first
fread(datcom_.d2,2,npts,fp);
// 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);
qDebug() << "Getfile" << npts << nrd;
fclose(fp);
}
}