summaryrefslogtreecommitdiff
path: root/Modulator/Modulator.hpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
committerChristoph Berg <myon@debian.org>2026-09-26 23:24:03 +0200
commit059831534c7e884f0a607ed86b582fd00d821731 (patch)
tree76bcb67a78f8aa2654fd34c2ad801a62136b0170 /Modulator/Modulator.hpp
parentd83a420f0517d7fc47aeb288a6a0cf4891784fcc (diff)
New upstream version 3.2.0~rc1+dfsgupstream/3.2.0_rc1+dfsg
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;