summaryrefslogtreecommitdiff
path: root/vendor/vstsdk2.4/public.sdk/samples/vst2.x/adelay/surrounddelay.h
diff options
context:
space:
mode:
authorpepper <peppersclothescult@gmail.com>2015-01-10 21:37:24 -0800
committerpepper <peppersclothescult@gmail.com>2015-01-10 21:37:24 -0800
commit58f8437f4b8b741ddc8e7bcde21bf983cc618430 (patch)
treebfd0a9d601274fe56de15a4eaeb0998f9481419d /vendor/vstsdk2.4/public.sdk/samples/vst2.x/adelay/surrounddelay.h
parent36773a28ece1641a2d827a29869cdd4c38e87925 (diff)
added vstsdkHEADmaster
Diffstat (limited to 'vendor/vstsdk2.4/public.sdk/samples/vst2.x/adelay/surrounddelay.h')
-rw-r--r--vendor/vstsdk2.4/public.sdk/samples/vst2.x/adelay/surrounddelay.h54
1 files changed, 54 insertions, 0 deletions
diff --git a/vendor/vstsdk2.4/public.sdk/samples/vst2.x/adelay/surrounddelay.h b/vendor/vstsdk2.4/public.sdk/samples/vst2.x/adelay/surrounddelay.h
new file mode 100644
index 0000000..f8412b9
--- /dev/null
+++ b/vendor/vstsdk2.4/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