48 lines
1.3 KiB
C++
Executable File
48 lines
1.3 KiB
C++
Executable File
/*-----------------------------------------------------------------------------
|
|
|
|
� 1999, Steinberg Soft und Hardware GmbH, All Rights Reserved
|
|
|
|
-----------------------------------------------------------------------------*/
|
|
#ifndef __PLUGIN_H
|
|
#define __PLUGIN_H
|
|
|
|
#include "public.sdk/source/vst2.x/audioeffectx.h"
|
|
#include <reverb/reverb.hpp>
|
|
|
|
class Plugin : public AudioEffectX
|
|
{
|
|
public:
|
|
Plugin(audioMasterCallback audioMaster);
|
|
~Plugin();
|
|
|
|
// Processing
|
|
virtual void processReplacing (float** inputs, float** outputs, VstInt32 sampleFrames);
|
|
|
|
// Program
|
|
virtual void setProgramName (char* name);
|
|
virtual void getProgramName (char* name);
|
|
|
|
// Parameters
|
|
virtual void setParameter (VstInt32 index, float value);
|
|
virtual float getParameter (VstInt32 index);
|
|
virtual void getParameterLabel (VstInt32 index, char* label);
|
|
virtual void getParameterDisplay (VstInt32 index, char* text);
|
|
virtual void getParameterName (VstInt32 index, char* text);
|
|
|
|
virtual void setSampleRate(float sampleRate);
|
|
virtual void setBlockSize(VstInt32 blockSize);
|
|
|
|
protected:
|
|
float ftype, forder, fg, q, sm_fg, sm_q, testParam;
|
|
float f_fmin, f_fmax, f_fg_param;
|
|
VstInt32 type, order;
|
|
char programName[32];
|
|
char dbgStr[80];
|
|
|
|
private:
|
|
Reverb<float, 8> m_reverb_1;
|
|
Reverb<float, 8> m_reverb_2;
|
|
};
|
|
|
|
#endif // __PLUGIN_H
|