Clementine-audio-player-Mac.../src/analyzers/analyzer.cpp

18 lines
411 B
C++
Raw Normal View History

2010-08-18 18:26:36 +02:00
#include "analyzer.h"
#include "engines/enginebase.h"
AnalyzerBase::AnalyzerBase(QWidget* parent)
: QGLWidget(parent),
engine_(NULL) {
}
void AnalyzerBase::set_engine(Engine::Base* engine) {
disconnect(engine_);
engine_ = engine;
if (engine_) {
connect(engine_, SIGNAL(SpectrumAvailable(const QVector<float>&)),
SLOT(SpectrumAvailable(const QVector<float>&)));
}
2010-08-18 18:26:36 +02:00
}