diff options
author | David Robillard <d@drobilla.net> | 2008-08-14 00:29:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-14 00:29:22 +0000 |
commit | efa03e862ad75e0a83fcf82a916720a82cdffc0b (patch) | |
tree | d2c0e6661576f2dd5cda62bc3b76864aac635429 /lvz/audioeffectx.h | |
parent | 2f7d4f902639750d8c0ca49bb15ed11a3d5cadd9 (diff) | |
download | mda.lv2-efa03e862ad75e0a83fcf82a916720a82cdffc0b.tar.gz mda.lv2-efa03e862ad75e0a83fcf82a916720a82cdffc0b.tar.bz2 mda.lv2-efa03e862ad75e0a83fcf82a916720a82cdffc0b.zip |
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
Diffstat (limited to 'lvz/audioeffectx.h')
-rw-r--r-- | lvz/audioeffectx.h | 14 |
1 files changed, 14 insertions, 0 deletions
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 <stdint.h> #include <string.h> +#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 |