diff options
author | David Robillard <d@drobilla.net> | 2008-08-09 04:50:39 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-08-09 04:50:39 +0000 |
commit | e6a34560fe4e20979bf89fdf890601cd8842305e (patch) | |
tree | 638bafebf6ae695ad00099804a2bd38632286641 | |
parent | f652720d0dc24a1951e66e28486e856b424d68df (diff) | |
download | mda.lv2-e6a34560fe4e20979bf89fdf890601cd8842305e.tar.gz mda.lv2-e6a34560fe4e20979bf89fdf890601cd8842305e.tar.bz2 mda.lv2-e6a34560fe4e20979bf89fdf890601cd8842305e.zip |
Working!
git-svn-id: http://svn.drobilla.net/lad/mda-lv2@1329 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | lvz/audioeffectx.h | 1 | ||||
-rw-r--r-- | lvz/wrapper.cpp | 2 |
3 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ -CFLAGS = -O0 -g -Wall -Wextra -Wshadow -Wno-unused -ansi -pedantic -fPIC -DPIC -Ilvz -I. -DPLUGIN_URI_PREFIX=\"http://drobilla.net/ns/dev/mda-lv2/\" +CFLAGS = -O0 -g -Wall -Wextra -Wshadow -Woverloaded-virtual -Wno-unused -ansi -pedantic -fPIC -DPIC -Ilvz -I. -DPLUGIN_URI_PREFIX=\"http://drobilla.net/ns/dev/mda-lv2/\" # Change this to wherever you want system-wide bundles installed LV2_INSTALL_DIR = /usr/local/lib/lv2 @@ -75,7 +75,7 @@ uninstall: rm -rf /usr/local/lib/lv2/mda.lv2 rm -rf /usr/lib/lv2/mda.lv2 -src/%.c: src/%.h lvz/audioeffectx.h +src/%.cpp: src/%.h lvz/audioeffectx.h lvz/gendata: lvz/gendata.cpp lvz/audioeffectx.h $(CXX) $(CFLAGS) -ldl $< -o $@ diff --git a/lvz/audioeffectx.h b/lvz/audioeffectx.h index ecacfcd..f076e04 100644 --- a/lvz/audioeffectx.h +++ b/lvz/audioeffectx.h @@ -94,6 +94,7 @@ public: virtual void canProcessReplacing() {} virtual void isSynth() {} virtual void process(float **inputs, float **outputs, LvzInt32 nframes) = 0; + virtual void processReplacing(float **inputs, float **outputs, LvzInt32 nframes) = 0; virtual void setBlockSize(LvzInt32 blockSize) {} virtual void setNumInputs(LvzInt32 num) { numInputs = num; } virtual void setNumOutputs(LvzInt32 num) { numOutputs = num; } diff --git a/lvz/wrapper.cpp b/lvz/wrapper.cpp index a7fbc7c..ac738fb 100644 --- a/lvz/wrapper.cpp +++ b/lvz/wrapper.cpp @@ -116,7 +116,7 @@ mda_run(LV2_Handle instance, uint32_t sample_count) } } - plugin->effect->process(plugin->inputs, plugin->outputs, sample_count); + plugin->effect->processReplacing(plugin->inputs, plugin->outputs, sample_count); } |