![]() |
Mixxx
|
00001 /*************************************************************************** 00002 enginepregain.h - description 00003 ------------------- 00004 copyright : (C) 2002 by Tue and Ken Haste Andersen 00005 email : 00006 ***************************************************************************/ 00007 00008 /*************************************************************************** 00009 * * 00010 * This program is free software; you can redistribute it and/or modify * 00011 * it under the terms of the GNU General Public License as published by * 00012 * the Free Software Foundation; either version 2 of the License, or * 00013 * (at your option) any later version. * 00014 * * 00015 ***************************************************************************/ 00016 00017 #ifndef ENGINEPREGAIN_H 00018 #define ENGINEPREGAIN_H 00019 00020 #include "engine/engineobject.h" 00021 #include "controlobject.h" 00022 00023 00024 class ControlLogpotmeter; 00025 class ControlPotmeter; 00026 class ControlObject; 00027 class EnginePregain : public EngineObject 00028 { 00029 public: 00030 EnginePregain( const char *group); 00031 ~EnginePregain(); 00032 void process(const CSAMPLE *pIn, const CSAMPLE *pOut, const int iBufferSize); 00033 00034 00035 00036 private: 00037 ControlLogpotmeter *potmeterPregain; 00038 ControlObject *m_pTotalGain; 00039 ControlObject* m_pControlReplayGain; 00040 static ControlPotmeter *s_pReplayGainBoost; 00041 static ControlObject *s_pEnableReplayGain; 00042 float m_fReplayGainCorrection; 00043 bool m_bSmoothFade; 00044 float m_fClock; 00045 float m_fSumClock; 00046 00047 }; 00048 00049 #endif