mirror of
https://github.com/saitohirga/WSJT-X.git
synced 2024-11-03 16:01:18 -05:00
1a3fc1d963
Tweak some GUI widget placements. Send stderr to file wsjtx.log. Fix formatting of std message with "R -7", etc., to "R-7". Introduce calls to "timer". Remove console. git-svn-id: svn+ssh://svn.code.sf.net/p/wsjt/wsjt/branches/wsjtx@2727 ab8295b8-cf94-4d9e-aec4-7959e3be5d79
51 lines
951 B
C++
51 lines
951 B
C++
#ifndef SOUNDIN_H
|
|
#define SOUNDIN_H
|
|
|
|
#include <QtCore>
|
|
#include <QDebug>
|
|
|
|
|
|
// Thread gets audio data from soundcard and signals when a buffer of
|
|
// specified size is available.
|
|
class SoundInThread : public QThread
|
|
{
|
|
Q_OBJECT
|
|
bool quitExecution; // if true, thread exits gracefully
|
|
|
|
protected:
|
|
virtual void run();
|
|
|
|
public:
|
|
bool m_dataSinkBusy;
|
|
|
|
SoundInThread():
|
|
quitExecution(false),
|
|
m_dataSinkBusy(false)
|
|
{
|
|
}
|
|
|
|
void setInputDevice(qint32 n);
|
|
void setMonitoring(bool b);
|
|
void setPeriod(int ntrperiod, int nsps);
|
|
int mstep();
|
|
double samFacIn();
|
|
|
|
signals:
|
|
void readyForFFT(int k);
|
|
void error(const QString& message);
|
|
void status(const QString& message);
|
|
|
|
public slots:
|
|
void quit();
|
|
|
|
private:
|
|
double m_SamFacIn; //(Input sample rate)/12000.0
|
|
qint32 m_step;
|
|
qint32 m_nDevIn;
|
|
qint32 m_TRperiod;
|
|
qint32 m_TRperiod0;
|
|
qint32 m_nsps;
|
|
bool m_monitoring;
|
|
};
|
|
#endif // SOUNDIN_H
|