![]() |
Mixxx
|
00001 #ifndef ANALYSER_WAVEFORM_H 00002 #define ANALYSER_WAVEFORM_H 00003 00004 #include "analyser.h" 00005 00006 class AnalyserWaveform : public Analyser { 00007 00008 public: 00009 AnalyserWaveform(); 00010 void initialise(TrackPointer tio, int sampleRate, int totalSamples); 00011 void process(const CSAMPLE *pIn, const int iLen); 00012 void finalise(TrackPointer tio); 00013 00014 private: 00015 QVector<float> *downsample; 00016 float *downsampleVector; 00017 00018 int m_iStartTime; 00019 int m_iStrideLength; 00020 int m_iCurPos; 00021 int m_iBufferPos; 00022 float m_fLMax; 00023 float m_fRMax; 00024 float m_fOldLMax; 00025 float m_fOldRMax; 00026 }; 00027 00028 #endif