Lock all analyzers to 25fps, should reduce CPU usage quite a bit
This commit is contained in:
parent
66d83fd120
commit
124ca3fe64
|
@ -42,9 +42,9 @@ template class Analyzer::Base<QWidget>;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
Analyzer::Base::Base( QWidget *parent, uint timeout, uint scopeSize )
|
Analyzer::Base::Base( QWidget *parent, uint scopeSize )
|
||||||
: QWidget( parent )
|
: QWidget( parent )
|
||||||
, m_timeout( timeout )
|
, m_timeout( 40 ) // msec
|
||||||
, m_fht( new FHT(scopeSize) )
|
, m_fht( new FHT(scopeSize) )
|
||||||
, m_engine(NULL)
|
, m_engine(NULL)
|
||||||
, m_lastScope(512)
|
, m_lastScope(512)
|
||||||
|
|
|
@ -46,7 +46,7 @@ public:
|
||||||
void set_engine(EngineBase* engine) { m_engine = engine; }
|
void set_engine(EngineBase* engine) { m_engine = engine; }
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
Base( QWidget*, uint timeout, uint scopeSize = 7 );
|
Base( QWidget*, uint scopeSize = 7 );
|
||||||
|
|
||||||
void hideEvent(QHideEvent *);
|
void hideEvent(QHideEvent *);
|
||||||
void showEvent(QShowEvent *);
|
void showEvent(QShowEvent *);
|
||||||
|
|
|
@ -20,7 +20,7 @@ const char* BarAnalyzer::kName = QT_TRANSLATE_NOOP("AnalyzerContainer", "Bar ana
|
||||||
|
|
||||||
|
|
||||||
BarAnalyzer::BarAnalyzer( QWidget *parent )
|
BarAnalyzer::BarAnalyzer( QWidget *parent )
|
||||||
: Analyzer::Base( parent, 12, 8 )
|
: Analyzer::Base( parent, 8 )
|
||||||
//, m_bands( BAND_COUNT )
|
//, m_bands( BAND_COUNT )
|
||||||
//, barVector( BAND_COUNT, 0 )
|
//, barVector( BAND_COUNT, 0 )
|
||||||
//, roofVector( BAND_COUNT, 50 )
|
//, roofVector( BAND_COUNT, 50 )
|
||||||
|
|
|
@ -24,7 +24,7 @@ const uint BlockAnalyzer::FADE_SIZE = 90;
|
||||||
const char* BlockAnalyzer::kName = QT_TRANSLATE_NOOP("AnalyzerContainer", "Block analyzer");
|
const char* BlockAnalyzer::kName = QT_TRANSLATE_NOOP("AnalyzerContainer", "Block analyzer");
|
||||||
|
|
||||||
BlockAnalyzer::BlockAnalyzer( QWidget *parent )
|
BlockAnalyzer::BlockAnalyzer( QWidget *parent )
|
||||||
: Analyzer::Base( parent, 20, 9 )
|
: Analyzer::Base( parent, 9 )
|
||||||
, m_columns( 0 ) //uint
|
, m_columns( 0 ) //uint
|
||||||
, m_rows( 0 ) //uint
|
, m_rows( 0 ) //uint
|
||||||
, m_y( 0 ) //uint
|
, m_y( 0 ) //uint
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
const char* BoomAnalyzer::kName = QT_TRANSLATE_NOOP("AnalyzerContainer", "Boom analyzer");
|
const char* BoomAnalyzer::kName = QT_TRANSLATE_NOOP("AnalyzerContainer", "Boom analyzer");
|
||||||
|
|
||||||
BoomAnalyzer::BoomAnalyzer( QWidget *parent )
|
BoomAnalyzer::BoomAnalyzer( QWidget *parent )
|
||||||
: Analyzer::Base( parent, 10, 9 )
|
: Analyzer::Base( parent, 9 )
|
||||||
, K_barHeight( 1.271 )//1.471
|
, K_barHeight( 1.271 )//1.471
|
||||||
, F_peakSpeed( 1.103 )//1.122
|
, F_peakSpeed( 1.103 )//1.122
|
||||||
, F( 1.0 )
|
, F( 1.0 )
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
const char* Sonogram::kName = QT_TRANSLATE_NOOP("AnalyzerContainer", "Sonogram");
|
const char* Sonogram::kName = QT_TRANSLATE_NOOP("AnalyzerContainer", "Sonogram");
|
||||||
|
|
||||||
Sonogram::Sonogram(QWidget *parent) :
|
Sonogram::Sonogram(QWidget *parent) :
|
||||||
Analyzer::Base(parent, 16, 9)
|
Analyzer::Base(parent, 9)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue