/* * analyserrg.h * * Created on: 13/ott/2010 * Author: Vittorio Colao * */ #ifndef ANALYSERRG_H_ #define ANALYSERRG_H_ #include "analyser.h" #include "configobject.h" class ReplayGain; class AnalyserGain : public Analyser { public: AnalyserGain(ConfigObject *_config); virtual ~AnalyserGain(); bool initialise(TrackPointer tio, int sampleRate, int totalSamples); bool loadStored(TrackPointer tio) const; void process(const CSAMPLE *pIn, const int iLen); void cleanup(TrackPointer tio); void finalise(TrackPointer tio); private: bool m_bStepControl; ConfigObject *m_pConfigReplayGain; CSAMPLE* m_pLeftTempBuffer; CSAMPLE* m_pRightTempBuffer; ReplayGain *m_pReplayGain; int m_iBufferSize; }; #endif /* ANALYSERRG_H_ */