mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-19 10:32:02 -05:00
More decoder progress.
git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2665 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
This commit is contained in:
parent
30c1266614
commit
465a3c630e
@ -1,6 +0,0 @@
|
||||
#include "jt9decode.h"
|
||||
|
||||
void JT9DecodeThread::run()
|
||||
{
|
||||
qDebug() << "Decode Thread started";
|
||||
}
|
29
jt9decode.h
29
jt9decode.h
@ -1,29 +0,0 @@
|
||||
#ifndef JT9DECODE_H
|
||||
#define JT9DECODE_H
|
||||
#include <QtCore>
|
||||
#include <QDebug>
|
||||
|
||||
class JT9DecodeThread : public QThread
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
protected:
|
||||
virtual void run();
|
||||
|
||||
public:
|
||||
// Constructs (but does not start) a JT9DecodeThread
|
||||
JT9DecodeThread()
|
||||
: quitExecution(false) // Initialize some private members
|
||||
, m_txOK(false)
|
||||
{
|
||||
}
|
||||
|
||||
public:
|
||||
bool quitExecution; //If true, thread exits gracefully
|
||||
|
||||
// Private members
|
||||
private:
|
||||
bool m_txOK; //Enable Tx audio
|
||||
};
|
||||
|
||||
#endif // JT9DECODE_H
|
@ -824,8 +824,7 @@ void MainWindow::freezeDecode(int n) //freezeDecode()
|
||||
|
||||
void MainWindow::decode() //decode()
|
||||
{
|
||||
// jt9DecodeThread.start(QThread::NormalPriority);
|
||||
|
||||
m_len1=80;
|
||||
*future3 = QtConcurrent::run(decoder_, &m_TRperiod);
|
||||
watcher3->setFuture(*future2);
|
||||
}
|
||||
|
@ -7,7 +7,6 @@
|
||||
#include <QHash>
|
||||
#include "soundin.h"
|
||||
#include "soundout.h"
|
||||
#include "jt9decode.h"
|
||||
#include "commons.h"
|
||||
#include "sleep.h"
|
||||
|
||||
@ -136,6 +135,7 @@ private:
|
||||
qint32 m_TRperiod;
|
||||
qint32 m_nsps;
|
||||
qint32 m_hsymStop;
|
||||
qint32 m_len1;
|
||||
|
||||
bool m_monitoring;
|
||||
bool m_transmitting;
|
||||
@ -153,6 +153,8 @@ private:
|
||||
bool m_kb8rq;
|
||||
bool m_NB;
|
||||
|
||||
char m_decoded[80];
|
||||
|
||||
float m_pctZap;
|
||||
|
||||
QRect m_wideGraphGeom;
|
||||
@ -192,7 +194,6 @@ private:
|
||||
|
||||
SoundInThread soundInThread; //Instantiate the audio threads
|
||||
SoundOutThread soundOutThread;
|
||||
JT9DecodeThread jt9DecodeThread;
|
||||
|
||||
//---------------------------------------------------- private functions
|
||||
void readSettings();
|
||||
|
@ -35,8 +35,7 @@ QMAKE_EXTRA_COMPILERS += gfortran
|
||||
SOURCES += main.cpp mainwindow.cpp plotter.cpp about.cpp \
|
||||
soundin.cpp soundout.cpp devsetup.cpp \
|
||||
widegraph.cpp getfile.cpp \
|
||||
displaytext.cpp getdev.cpp \
|
||||
jt9decode.cpp
|
||||
displaytext.cpp getdev.cpp
|
||||
|
||||
win32 {
|
||||
SOURCES += killbyname.cpp
|
||||
@ -44,8 +43,7 @@ SOURCES += killbyname.cpp
|
||||
|
||||
HEADERS += mainwindow.h plotter.h soundin.h soundout.h \
|
||||
about.h devsetup.h widegraph.h getfile.h \
|
||||
commons.h sleep.h displaytext.h \
|
||||
jt9decode.h
|
||||
commons.h sleep.h displaytext.h
|
||||
|
||||
DEFINES += __cplusplus
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user