diff --git a/getfile.cpp b/getfile.cpp index e286e00f8..9468832a6 100644 --- a/getfile.cpp +++ b/getfile.cpp @@ -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); diff --git a/lib/decoder.f90 b/lib/decoder.f90 index cd1f13471..5c40086f9 100644 --- a/lib/decoder.f90 +++ b/lib/decoder.f90 @@ -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 diff --git a/mainwindow.cpp b/mainwindow.cpp index ac7241b08..8bbcb44d4 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -1,4 +1,4 @@ -//---------------------------------------------------------------- MainWindow +//--------------------------------------------------------------- MainWindow #include "mainwindow.h" #include "ui_mainwindow.h" #include "devsetup.h"