diff --git a/sdrbase/dsp/dspengine.cpp b/sdrbase/dsp/dspengine.cpp index d16689186..2589ce9bf 100644 --- a/sdrbase/dsp/dspengine.cpp +++ b/sdrbase/dsp/dspengine.cpp @@ -32,6 +32,7 @@ DSPEngine::DSPEngine() : m_audioOutputDeviceIndex(-1) // default device { m_dvSerialSupport = false; + m_masterTimer.start(50); } DSPEngine::~DSPEngine() diff --git a/sdrbase/dsp/dspengine.h b/sdrbase/dsp/dspengine.h index aee3f1f28..144b3dbb0 100644 --- a/sdrbase/dsp/dspengine.h +++ b/sdrbase/dsp/dspengine.h @@ -19,6 +19,8 @@ #define INCLUDE_DSPENGINE_H #include +#include + #include #include "audio/audiooutput.h" #include "audio/audioinput.h" @@ -78,6 +80,8 @@ public: void getDVSerialNames(std::vector& deviceNames); void pushMbeFrame(const unsigned char *mbeFrame, int mbeRateIndex, int mbeVolumeIndex, unsigned char channels, AudioFifo *audioFifo); + const QTimer& getMasterTimer() const { return m_masterTimer; } + private: std::vector m_deviceSourceEngines; uint m_deviceSourceEnginesUIDSequence; @@ -89,6 +93,7 @@ private: uint m_audioInputSampleRate; int m_audioInputDeviceIndex; int m_audioOutputDeviceIndex; + QTimer m_masterTimer; bool m_dvSerialSupport; #ifdef DSD_USE_SERIALDV DVSerialEngine m_dvSerialEngine;