Changeset View
Changeset View
Standalone View
Standalone View
src/context/applets/analyzer/plugin/AnalyzerBase.cpp
Show First 20 Lines • Show All 43 Lines • ▼ Show 20 Line(s) | |||||
44 | Analyzer::Base::Base( QQuickItem *parent ) | 44 | Analyzer::Base::Base( QQuickItem *parent ) | ||
45 | : QQuickFramebufferObject( parent ) | 45 | : QQuickFramebufferObject( parent ) | ||
46 | , m_sampleRate( 44100 ) | 46 | , m_sampleRate( 44100 ) | ||
47 | , m_scopeSize( 0 ) | 47 | , m_scopeSize( 0 ) | ||
48 | , m_worker( Q_NULLPTR ) | 48 | , m_worker( Q_NULLPTR ) | ||
49 | { | 49 | { | ||
50 | DEBUG_BLOCK | 50 | DEBUG_BLOCK | ||
51 | 51 | | |||
52 | qRegisterMetaType<WindowFunction>(); | 52 | qRegisterMetaType<WindowFunction>("WindowFunction"); | ||
53 | 53 | | |||
54 | m_minFreq = config().readEntry( "minFreq", 50.0 ); | 54 | m_minFreq = config().readEntry( "minFreq", 50.0 ); | ||
55 | m_maxFreq = config().readEntry( "maxFreq", 15000.0 ); | 55 | m_maxFreq = config().readEntry( "maxFreq", 15000.0 ); | ||
56 | 56 | | |||
57 | connect( The::engineController(), &EngineController::trackChanged, this, &Base::refreshSampleRate ); | 57 | connect( The::engineController(), &EngineController::trackChanged, this, &Base::refreshSampleRate ); | ||
58 | connect( The::engineController(), &EngineController::trackMetadataChanged, this, &Base::refreshSampleRate ); | 58 | connect( The::engineController(), &EngineController::trackMetadataChanged, this, &Base::refreshSampleRate ); | ||
59 | 59 | | |||
60 | #ifdef Q_WS_X11 | 60 | #ifdef Q_WS_X11 | ||
▲ Show 20 Lines • Show All 179 Lines • Show Last 20 Lines |