From e6a34560fe4e20979bf89fdf890601cd8842305e Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 9 Aug 2008 04:50:39 +0000 Subject: Working! git-svn-id: http://svn.drobilla.net/lad/mda-lv2@1329 a436a847-0d15-0410-975c-d299462d15a1 --- Makefile | 4 ++-- lvz/audioeffectx.h | 1 + lvz/wrapper.cpp | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index d09bd3d..41f3d5a 100644 --- a/Makefile +++ b/Makefile @@ -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); } -- cgit v1.2.1