summaryrefslogtreecommitdiff
path: root/Detector.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 /Detector.hpp
parentb7238399ea4f1ca51d8f7b8f9220af3da0913edf (diff)
New upstream version 2.1.0~rc6+repackupstream/2.1.0_rc6+repack
Diffstat (limited to 'Detector.hpp')
-rw-r--r--Detector.hpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Detector.hpp b/Detector.hpp
index d5e5b0a3..4d584c13 100644
--- a/Detector.hpp
+++ b/Detector.hpp
@@ -22,9 +22,10 @@ public:
//
// the samplesPerFFT argument is the number after down sampling
//
- Detector (unsigned frameRate, unsigned periodLengthInSeconds, unsigned downSampleFactor = 4u, QObject * parent = 0);
+ Detector (unsigned frameRate, double periodLengthInSeconds, unsigned downSampleFactor = 4u,
+ QObject * parent = 0);
- void setTRPeriod(unsigned p) {m_period=p;}
+ void setTRPeriod(double p) {m_period=p;}
bool reset () override;
Q_SIGNAL void framesWritten (qint64) const;
@@ -40,10 +41,9 @@ protected:
private:
void clear (); // discard buffer contents
- unsigned secondInPeriod () const;
unsigned m_frameRate;
- unsigned m_period;
+ double m_period;
unsigned m_downSampleFactor;
qint32 m_samplesPerFFT; // after any down sampling
qint32 m_ns;