summaryrefslogtreecommitdiff
path: root/Modulator.hpp
diff options
context:
space:
mode:
authorChristoph Berg <myon@debian.org>2019-06-02 22:17:11 +0200
committerChristoph Berg <myon@debian.org>2019-06-02 22:17:11 +0200
commit851b658298afb9bafeda98ffbfa2ade612c656be (patch)
tree826d54e9dac4ce15fdd1b6af3360eeba7993a7d2 /Modulator.hpp
parentb7238399ea4f1ca51d8f7b8f9220af3da0913edf (diff)
New upstream version 2.1.0~rc6+repackupstream/2.1.0_rc6+repack
Diffstat (limited to 'Modulator.hpp')
-rw-r--r--Modulator.hpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/Modulator.hpp b/Modulator.hpp
index e8df7f2d..3371cbe5 100644
--- a/Modulator.hpp
+++ b/Modulator.hpp
@@ -23,7 +23,7 @@ class Modulator
public:
enum ModulatorState {Synchronizing, Active, Idle};
- Modulator (unsigned frameRate, unsigned periodLengthInSeconds, QObject * parent = nullptr);
+ Modulator (unsigned frameRate, double periodLengthInSeconds, QObject * parent = nullptr);
void close () override;
@@ -31,14 +31,14 @@ public:
double frequency () const {return m_frequency;}
bool isActive () const {return m_state != Idle;}
void setSpread(double s) {m_fSpread=s;}
- void setTRPeriod(unsigned p) {m_period=p;}
+ void setTRPeriod(double p) {m_period=p;}
void set_nsym(int n) {m_symbolsLength=n;}
void set_ms0(qint64 ms) {m_ms0=ms;}
Q_SLOT void start (unsigned symbolsLength, double framesPerSymbol, double frequency,
double toneSpacing, SoundOutput *, Channel = Mono,
bool synchronize = true, bool fastMode = false,
- double dBSNR = 99., int TRperiod=60);
+ double dBSNR = 99., double TRperiod=60.0);
Q_SLOT void stop (bool quick = false);
Q_SLOT void tune (bool newState = true);
Q_SLOT void setFrequency (double newFrequency) {m_frequency = newFrequency;}
@@ -72,14 +72,14 @@ private:
double m_fac;
double m_toneSpacing;
double m_fSpread;
+ double m_TRperiod;
+ double m_period;
qint64 m_silentFrames;
qint64 m_ms0;
- qint32 m_TRperiod;
qint16 m_ramp;
unsigned m_frameRate;
- unsigned m_period;
ModulatorState volatile m_state;
bool volatile m_tuning;