1
0
mirror of https://github.com/f4exb/sdrangel.git synced 2026-06-20 06:38:36 -04:00

Multi device support: completely removed direct access to DSP device engine from DSP engine

This commit is contained in:
f4exb
2016-05-13 00:50:29 +02:00
parent 2b036e2212
commit 7053d3775c
15 changed files with 16 additions and 62 deletions
-18
View File
@@ -23,7 +23,6 @@
#include <QOpenGLFunctions>
#include <QSurface>
#include "gui/glscope.h"
#include "dsp/dspengine.h"
#include <algorithm>
#include <QDebug>
@@ -54,8 +53,6 @@ GLScope::GLScope(QWidget* parent) :
m_amp2(1.0),
m_ofs1(0.0),
m_ofs2(0.0),
m_dspEngine(NULL),
m_scopeVis(NULL),
//m_amp(1.0),
//m_ofs(0.0),
m_timeBase(1),
@@ -88,21 +85,6 @@ GLScope::GLScope(QWidget* parent) :
GLScope::~GLScope()
{
cleanup();
if(m_dspEngine != 0)
{
m_dspEngine->removeSink(m_scopeVis);
delete m_scopeVis;
}
}
void GLScope::setDSPEngine(DSPEngine* dspEngine)
{
if((m_dspEngine == NULL) && (dspEngine != NULL)) {
m_dspEngine = dspEngine;
m_scopeVis = new ScopeVis(this);
m_dspEngine->addSink(m_scopeVis);
}
}
void GLScope::setSampleRate(int sampleRate) {