summaryrefslogtreecommitdiff
path: root/Modulator/Modulator.hpp
diff options
context:
space:
mode:
authorhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
committerhibby <d@vehibberd.com>2026-10-06 21:24:40 +0100
commitc25cbdf6fb6d946175f4335fab77bfea601b56db (patch)
tree6f7a94b7b81f999e434f61b73d47e337dfd26bf2 /Modulator/Modulator.hpp
parent71f5689252c9f13e70e1c24856904475b2307809 (diff)
parent0685fcada9f95fe90f70b387cd7d757da8209624 (diff)
Merge tag 'debian/3.2.0_rc1+dfsg-2' into debian/trixie-backportsdebian/trixie-backports
tagging wsjtx 3.2.0~rc1+dfsg-2
Diffstat (limited to 'Modulator/Modulator.hpp')
-rw-r--r--Modulator/Modulator.hpp14
1 files changed, 10 insertions, 4 deletions
diff --git a/Modulator/Modulator.hpp b/Modulator/Modulator.hpp
index 272e0a33..024c4d5c 100644
--- a/Modulator/Modulator.hpp
+++ b/Modulator/Modulator.hpp
@@ -3,8 +3,11 @@
#include <QAudio>
#include <QPointer>
+#include <QVector>
#include "Audio/AudioDevice.hpp"
+#include "Audio/TxRequest.hpp"
+#include "Audio/TxPlaybackEvidence.hpp"
class SoundOutput;
@@ -35,14 +38,15 @@ public:
void set_nsym(int n) {m_symbolsLength=n;}
void set_ms0(qint64 ms) {m_ms0=ms;}
- Q_SLOT void start (QString mode, unsigned symbolsLength, double framesPerSymbol, double frequency,
- double toneSpacing, SoundOutput *, Channel = Mono,
- bool synchronize = true, bool fastMode = false,
- double dBSNR = 99., double TRperiod=60.0);
+ Q_SLOT void start (TxEvidence::TxRequest request, SoundOutput *);
Q_SLOT void stop (bool quick = false);
Q_SLOT void tune (bool newState = true);
Q_SLOT void setFrequency (double newFrequency) {m_frequency = newFrequency;}
Q_SIGNAL void stateChanged (ModulatorState) const;
+ Q_SIGNAL void txSourceCommitted (TxEvidence::TxStartSnapshot snapshot) const;
+ Q_SIGNAL void constrainedStartDecided (qint64 sessionId, qint64 generation,
+ qint64 windowOpenMs, bool accepted,
+ qint64 actualStartMs) const;
protected:
qint64 readData (char * data, qint64 maxSize) override;
@@ -82,12 +86,14 @@ private:
unsigned m_frameRate;
ModulatorState m_state;
+ QString m_mode;
bool m_tuning;
bool m_addNoise;
bool m_bFastMode;
bool m_cwLevel;
+ QVector<int> m_cwId;
unsigned m_ic;
unsigned m_icmin;
unsigned m_icmax;