![]() |
Mixxx
|
00001 /* 00002 * analyserrg.h 00003 * 00004 * Created on: 13/ott/2010 00005 * Author: Vittorio Colao 00006 * */ 00007 00008 #ifndef ANALYSERRG_H_ 00009 #define ANALYSERRG_H_ 00010 00011 #include "analyser.h" 00012 #include "configobject.h" 00013 00014 00015 class AnalyserGain : public Analyser { 00016 00017 public: 00018 AnalyserGain(ConfigObject<ConfigValue> *_config); 00019 virtual ~AnalyserGain(); 00020 00021 void initialise(TrackPointer tio, int sampleRate, int totalSamples); 00022 void process(const CSAMPLE *pIn, const int iLen); 00023 void finalise(TrackPointer tio); 00024 00025 private: 00026 int m_iStepControl; 00027 ConfigObject<ConfigValue> *m_pConfigReplayGain; 00028 CSAMPLE* m_pLeftTempBuffer; 00029 CSAMPLE* m_pRightTempBuffer; 00030 int m_iBufferSize; 00031 }; 00032 00033 00034 #endif /* ANALYSERRG_H_ */