mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-23 12:48:40 -05:00
Testing: don't call fil4 if parameters are out of range.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@3622 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
e39c3f468b
commit
e1d0115684
14
Detector.cpp
14
Detector.cpp
@ -70,12 +70,14 @@ qint64 Detector::writeData (char const * data, qint64 maxSize)
|
||||
if(m_bufferPos==m_framesPerSignal*m_downSampleFactor && m_monitoring) {
|
||||
qint32 framesToProcess (m_framesPerSignal * m_downSampleFactor);
|
||||
qint32 framesAfterDownSample;
|
||||
if(framesToProcess!=13824) qDebug() << "framesToProcess ="
|
||||
<< framesToProcess;
|
||||
if(jt9com_.kin<0 or jt9com_.kin>=1440000) qDebug() << "jt9com_.kin ="
|
||||
<< jt9com_.kin;
|
||||
fil4_(&m_buffer[0], &framesToProcess, &jt9com_.d2[jt9com_.kin],
|
||||
&framesAfterDownSample);
|
||||
if(framesToProcess==13824 and jt9com_.kin>=0 and jt9com_.kin<1440000) {
|
||||
fil4_(&m_buffer[0], &framesToProcess, &jt9com_.d2[jt9com_.kin],
|
||||
&framesAfterDownSample);
|
||||
} else {
|
||||
qDebug() << "framesToProcess = " << framesToProcess;
|
||||
qDebug() << "jt9com_.kin = " << jt9com_.kin;
|
||||
qDebug() << "secondInPeriod = " << secondInPeriod();
|
||||
}
|
||||
Q_ASSERT(framesAfterDownSample==3456);
|
||||
jt9com_.kin += framesAfterDownSample;
|
||||
Q_EMIT framesWritten (jt9com_.kin);
|
||||
|
@ -1,4 +1,4 @@
|
||||
//----------------------------------------------------------------- MainWindow
|
||||
//---------------------------------------------------------------- MainWindow
|
||||
#include "mainwindow.h"
|
||||
#include "ui_mainwindow.h"
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
[Setup]
|
||||
AppName=wsjtx
|
||||
AppVerName=wsjtx Version 1.2.1a r3590
|
||||
AppCopyright=Copyright (C) 2001-2013 by Joe Taylor, K1JT
|
||||
AppVerName=wsjtx Version 1.2.2 r3620
|
||||
AppCopyright=Copyright (C) 2001-2014 by Joe Taylor, K1JT
|
||||
DefaultDirName=c:\wsjtx1.2
|
||||
DefaultGroupName=wsjtx1.2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user