mirror of
https://github.com/f4exb/sdrangel.git
synced 2024-11-26 01:39:05 -05:00
Implemented a master timer in DSPEngine
This commit is contained in:
parent
d5ccbe4f17
commit
9cfe817e96
@ -32,6 +32,7 @@ DSPEngine::DSPEngine() :
|
||||
m_audioOutputDeviceIndex(-1) // default device
|
||||
{
|
||||
m_dvSerialSupport = false;
|
||||
m_masterTimer.start(50);
|
||||
}
|
||||
|
||||
DSPEngine::~DSPEngine()
|
||||
|
@ -19,6 +19,8 @@
|
||||
#define INCLUDE_DSPENGINE_H
|
||||
|
||||
#include <QObject>
|
||||
#include <QTimer>
|
||||
|
||||
#include <vector>
|
||||
#include "audio/audiooutput.h"
|
||||
#include "audio/audioinput.h"
|
||||
@ -78,6 +80,8 @@ public:
|
||||
void getDVSerialNames(std::vector<std::string>& 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<DSPDeviceSourceEngine*> 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;
|
||||
|
Loading…
Reference in New Issue
Block a user