Clementine-audio-player-Mac.../src/analyzers/boomanalyzer.h

45 lines
866 B
C
Raw Normal View History

2009-12-24 20:16:07 +01:00
// Author: Max Howell <max.howell@methylblue.com>, (C) 2004
// Copyright: See COPYING file that comes with this distribution
//
#ifndef BOOMANALYZER_H
#define BOOMANALYZER_H
#include "analyzerbase.h"
/**
@author Max Howell
*/
class BoomAnalyzer : public Analyzer::Base {
Q_OBJECT
public:
Q_INVOKABLE BoomAnalyzer(QWidget*);
2010-03-21 18:22:05 +01:00
static const char* kName;
2009-12-24 20:16:07 +01:00
virtual void init();
virtual void transform(Scope& s);
virtual void analyze(QPainter& p, const Scope&, bool new_frame);
2009-12-24 20:16:07 +01:00
public slots:
void changeK_barHeight(int);
void changeF_peakSpeed(int);
2009-12-24 20:16:07 +01:00
protected:
void resizeEvent(QResizeEvent* e);
2010-03-21 18:22:05 +01:00
static const uint COLUMN_WIDTH = 4;
static const uint BAND_COUNT = 32;
2009-12-24 20:16:07 +01:00
double K_barHeight, F_peakSpeed, F;
2009-12-24 20:16:07 +01:00
std::vector<float> bar_height;
std::vector<float> peak_height;
std::vector<float> peak_speed;
2009-12-24 20:16:07 +01:00
QPixmap barPixmap;
2009-12-24 20:16:07 +01:00
};
#endif