diff options
| author | pepper <pepper@chimecrisis.com> | 2015-01-31 21:41:28 -0800 |
|---|---|---|
| committer | pepper <pepper@chimecrisis.com> | 2015-01-31 21:41:28 -0800 |
| commit | 97587996ee9db30ce00190bdcedd8210490b99f5 (patch) | |
| tree | d8554969ac496be3a1b02a159f2a4b5b79f9492e /public.sdk/samples/vst2.x/adelay/surrounddelay.h | |
backup vst 2.4
Diffstat (limited to 'public.sdk/samples/vst2.x/adelay/surrounddelay.h')
| -rw-r--r-- | public.sdk/samples/vst2.x/adelay/surrounddelay.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/public.sdk/samples/vst2.x/adelay/surrounddelay.h b/public.sdk/samples/vst2.x/adelay/surrounddelay.h new file mode 100644 index 0000000..f8412b9 --- /dev/null +++ b/public.sdk/samples/vst2.x/adelay/surrounddelay.h @@ -0,0 +1,54 @@ +//------------------------------------------------------------------------------------------------------- +// VST Plug-Ins SDK +// Version 2.4 $Date: 2006/11/13 09:08:27 $ +// +// Category : VST 2.x SDK Samples +// Filename : surrounddelay.h +// Created by : Steinberg Media Technologies +// Description : Simple Surround Delay plugin with Editor using VSTGUI +// +// © 2006, Steinberg Media Technologies, All Rights Reserved +//------------------------------------------------------------------------------------------------------- + +#ifndef __surrounddelay__ +#define __surrounddelay__ + +#ifndef __adelay__ +#include "adelay.h" +#endif + +#define MAX_CHANNELS 6 // maximun number of channel + +//------------------------------------------------------------------------ +// SurroundDelay declaration +//------------------------------------------------------------------------ +class SurroundDelay : public ADelay +{ +public: + SurroundDelay (audioMasterCallback audioMaster); + ~SurroundDelay (); + + virtual void processReplacing (float** inputs, float** outputs, VstInt32 sampleframes); + + void setParameter (VstInt32 index, float value); + + // functions VST version 2 + virtual bool getVendorString (char* text) { if (text) strcpy (text, "Steinberg"); return true; } + virtual bool getProductString (char* text) { if (text) strcpy (text, "SDelay"); return true; } + virtual VstInt32 getVendorVersion () { return 1000; } + + virtual VstPlugCategory getPlugCategory () { return kPlugSurroundFx; } + + virtual bool getSpeakerArrangement (VstSpeakerArrangement** pluginInput, VstSpeakerArrangement** pluginOutput); + virtual bool setSpeakerArrangement (VstSpeakerArrangement* pluginInput, VstSpeakerArrangement* pluginOutput); + + virtual void resume (); + +private: + VstSpeakerArrangement* plugInput; + VstSpeakerArrangement* plugOutput; + + float* sBuffers[MAX_CHANNELS]; +}; + +#endif |
