From 059831534c7e884f0a607ed86b582fd00d821731 Mon Sep 17 00:00:00 2001 From: Christoph Berg Date: Sat, 26 Sep 2026 23:24:03 +0200 Subject: New upstream version 3.2.0~rc1+dfsg --- Modulator/Modulator.hpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'Modulator/Modulator.hpp') 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 #include +#include #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 m_cwId; unsigned m_ic; unsigned m_icmin; unsigned m_icmax; -- cgit v1.2.3