mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-22 12:23:37 -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());
|
strcpy(name,fname.toAscii());
|
||||||
FILE* fp=fopen(name,"rb");
|
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;
|
int npts=ntrperiod*12000;
|
||||||
memset(jt9com_.d2,0,2*npts);
|
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###
|
if(nsps.eq.0) stop 'Error: bad TRperiod' !Better: return an error code###
|
||||||
|
|
||||||
! Now do the decoding
|
! Now do the decoding
|
||||||
nutc=0
|
|
||||||
kstep=nsps/2
|
kstep=nsps/2
|
||||||
tstep=kstep/12000.0
|
tstep=kstep/12000.0
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
//---------------------------------------------------------------- MainWindow
|
//--------------------------------------------------------------- MainWindow
|
||||||
#include "mainwindow.h"
|
#include "mainwindow.h"
|
||||||
#include "ui_mainwindow.h"
|
#include "ui_mainwindow.h"
|
||||||
#include "devsetup.h"
|
#include "devsetup.h"
|
||||||
|
Loading…
Reference in New Issue
Block a user