From efa03e862ad75e0a83fcf82a916720a82cdffc0b Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 14 Aug 2008 00:29:22 +0000 Subject: Fix crash when showing control window for root patch. git-svn-id: http://svn.drobilla.net/lad/mda-lv2@1362 a436a847-0d15-0410-975c-d299462d15a1 --- lvz/audioeffectx.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'lvz/audioeffectx.h') diff --git a/lvz/audioeffectx.h b/lvz/audioeffectx.h index 162d24b..f278d63 100644 --- a/lvz/audioeffectx.h +++ b/lvz/audioeffectx.h @@ -22,6 +22,8 @@ #include #include +#include "AEffect.h" + // Some plugins seem to use these names... #ifndef VstInt32 # define VstInt32 LvzInt32 @@ -56,6 +58,11 @@ struct LvzPinProperties { int flags; }; +enum LvzOpCodes { + effEditClose, + effEditOpen +}; + enum LvzEventTypes { kLvzMidiType = 0 }; @@ -82,6 +89,7 @@ public: virtual ~AudioEffect() {} virtual void setParameter(LvzInt32 index, float value) = 0; + virtual void setParameterAutomated(LvzInt32 index, float value) {} virtual float getParameter(LvzInt32 index) = 0; void setEditor(AEffEditor* e) { editor = e; } @@ -103,6 +111,7 @@ public: , numParams(params) , numPrograms(progs) { + cEffect.flags = 0; } virtual void process (float **inputs, float **outputs, LvzInt32 nframes) = 0; @@ -138,6 +147,10 @@ public: virtual bool openFileSelector (VstFileSelect* sel) { return false; } virtual bool closeFileSelector (VstFileSelect* sel) { return false; } + virtual long dispatcher(long opCode, long index, long value, void *ptr, float opt) { + return 0; + } + protected: const char* URI; const char* uniqueID; @@ -147,6 +160,7 @@ protected: LvzInt32 numOutputs; LvzInt32 numParams; LvzInt32 numPrograms; + AEffect cEffect; }; #endif // __LVZ_AUDIOEFFECTX_H -- cgit v1.2.1