mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-25 13:48:42 -05:00
Get UTC from filename.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2675 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
5a74450d30
commit
c1531857e9
@ -11,6 +11,10 @@ void getfile(QString fname, int ntrperiod)
|
||||
strcpy(name,fname.toAscii());
|
||||
FILE* fp=fopen(name,"rb");
|
||||
|
||||
int i0=fname.indexOf(".wav");
|
||||
jt9com_.nutc=0;
|
||||
if(i0>0) jt9com_.nutc=100*fname.mid(i0-4,2).toInt() +
|
||||
fname.mid(i0-2,2).toInt();
|
||||
int npts=ntrperiod*12000;
|
||||
memset(jt9com_.d2,0,2*npts);
|
||||
|
||||
|
@ -39,7 +39,6 @@ subroutine decoder(ntrSeconds,c0)
|
||||
if(nsps.eq.0) stop 'Error: bad TRperiod' !Better: return an error code###
|
||||
|
||||
! Now do the decoding
|
||||
nutc=0
|
||||
kstep=nsps/2
|
||||
tstep=kstep/12000.0
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
//---------------------------------------------------------------- MainWindow
|
||||
//--------------------------------------------------------------- MainWindow
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
#include "devsetup.h"
|
||||
|
Loading…
Reference in New Issue
Block a user