diff options
| author | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
|---|---|---|
| committer | Christoph Berg <myon@debian.org> | 2025-01-09 22:12:06 +0100 |
| commit | 992d4b4b8d3f3a630a2cf00d593ee4ce4dfa7ce8 (patch) | |
| tree | fbfdfe6bcb0a8a114be2480dac53d88c977e4869 /map65/soundout.h | |
| parent | 4320ce238aae1fe87fc9f379cdd816e9317885fa (diff) | |
New upstream version 2.7.0~rc8+repackupstream/2.7.0_rc8+repack
Diffstat (limited to 'map65/soundout.h')
| -rwxr-xr-x | map65/soundout.h | 88 |
1 files changed, 44 insertions, 44 deletions
diff --git a/map65/soundout.h b/map65/soundout.h index 3284d536..294c6fa5 100755 --- a/map65/soundout.h +++ b/map65/soundout.h @@ -1,44 +1,44 @@ -#ifndef SOUNDOUT_H
-#define SOUNDOUT_H
-#include <QtCore>
-#include <QDebug>
-
-// An instance of this thread sends audio data to a specified soundcard.
-// Output can be muted while underway, preserving waveform timing when
-// transmission is resumed.
-
-class SoundOutThread : public QThread
-{
- Q_OBJECT
-
-protected:
- virtual void run();
-
-public:
-// Constructs (but does not start) a SoundOutThread
- SoundOutThread()
- : quitExecution(false) // Initialize some private members
- , m_rate(0)
- , m_nwave(48*11025)
- , m_txOK(false)
- , m_txMute(false)
- {
- }
-
-public:
- void setOutputDevice(qint32 n);
- void setPeriod(int n);
- bool quitExecution; //If true, thread exits gracefully
-
-
-// Private members
-private:
- double m_rate; //Sample rate
- qint32 m_nDevOut; //Output device number
- qint32 m_nwave; //Length of wave file
- qint32 m_TRperiod; //T/R period (30 or 60 s)
- bool m_txOK; //Enable Tx audio
- bool m_txMute; //Mute temporarily
-};
-
-#endif
+#ifndef SOUNDOUT_H +#define SOUNDOUT_H +#include <QtCore> +#include <QDebug> + +// An instance of this thread sends audio data to a specified soundcard. +// Output can be muted while underway, preserving waveform timing when +// transmission is resumed. + +class SoundOutThread : public QThread +{ + Q_OBJECT + +protected: + virtual void run(); + +public: +// Constructs (but does not start) a SoundOutThread + SoundOutThread() + : quitExecution(false) // Initialize some private members + , m_rate(0) + , m_nwave(48*11025) + , m_txOK(false) + , m_txMute(false) + { + } + +public: + void setOutputDevice(qint32 n); + void setPeriod(int n); + bool quitExecution; //If true, thread exits gracefully + + +// Private members +private: + double m_rate; //Sample rate + qint32 m_nDevOut; //Output device number + qint32 m_nwave; //Length of wave file + qint32 m_TRperiod; //T/R period (30 or 60 s) + bool m_txOK; //Enable Tx audio + bool m_txMute; //Mute temporarily +}; + +#endif |
