aboutsummaryrefslogtreecommitdiffstats
path: root/lvz
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-08-14 00:29:22 +0000
committerDavid Robillard <d@drobilla.net>2008-08-14 00:29:22 +0000
commitefa03e862ad75e0a83fcf82a916720a82cdffc0b (patch)
treed2c0e6661576f2dd5cda62bc3b76864aac635429 /lvz
parent2f7d4f902639750d8c0ca49bb15ed11a3d5cadd9 (diff)
downloadmda.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')
-rw-r--r--lvz/AEffEditor.hpp2
-rw-r--r--lvz/audioeffectx.h14
2 files changed, 16 insertions, 0 deletions
diff --git a/lvz/AEffEditor.hpp b/lvz/AEffEditor.hpp
index 239c9d0..f8da52a 100644
--- a/lvz/AEffEditor.hpp
+++ b/lvz/AEffEditor.hpp
@@ -12,8 +12,10 @@ public:
{}
virtual long open(void* ptr) { return true; }
+ virtual void close() {}
virtual void idle() {}
+ virtual void postUpdate() {}
virtual const char* getURI() { return URI; }
virtual void setURI(const char* u) { URI = u; }
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