aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lvz/audioeffectx.h48
-rwxr-xr-xsrc/post_merge.sh11
-rwxr-xr-xsrc/pre_merge.sh10
3 files changed, 13 insertions, 56 deletions
diff --git a/lvz/audioeffectx.h b/lvz/audioeffectx.h
index 3eba2ee..b415a80 100644
--- a/lvz/audioeffectx.h
+++ b/lvz/audioeffectx.h
@@ -1,19 +1,19 @@
/*
- LVZ - A C++ interface for writing LV2 plugins.
+ LVZ - An ugly C++ interface for writing LV2 plugins.
Copyright 2008-2011 David Robillard <http://drobilla.net>
- This is free software: you can redistribute it and/or modify it
- under the terms of the GNU General Public License as published by
- the Free Software Foundation, either version 3 of the License,
- or (at your option) any later version.
+ This is free software: you can redistribute it and/or modify it under the
+ terms of the GNU General Public License as published by the Free Software
+ Foundation, either version 3 of the License, or (at your option) any later
+ version.
- This software is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
- See the GNU General Public License for more details.
+ This software is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
+ details.
- You should have received a copy of the GNU General Public License
- along with this software. If not, see <http://www.gnu.org/licenses/>.
+ You should have received a copy of the GNU General Public License along with
+ this software. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef LVZ_AUDIOEFFECTX_H
@@ -24,21 +24,10 @@
#include "AEffect.h"
-typedef int16_t LvzInt16;
typedef int32_t LvzInt32;
typedef int (*audioMasterCallback)(int, int ver, int, int, int, int);
-class AEffEditor;
-
-struct LvzFileSelect {
- int reserved;
- char* returnPath;
- size_t sizeReturnPath;
- char** returnMultiplePaths;
- long nbReturnPath;
-};
-
enum LvzPinFlags {
kLvzPinIsActive = 1<<0,
kLvzPinIsStereo = 1<<1
@@ -50,11 +39,6 @@ struct LvzPinProperties {
int flags;
};
-enum LvzOpCodes {
- effEditClose,
- effEditOpen
-};
-
enum LvzEventTypes {
kLvzMidiType = 0
};
@@ -77,17 +61,14 @@ struct LvzEvents {
class AudioEffect {
public:
- AudioEffect() : editor(NULL) {}
+ AudioEffect() {}
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; }
- virtual void masterIdle() {}
-protected:
- AEffEditor* editor;
+ virtual void masterIdle() {}
};
@@ -138,9 +119,6 @@ public:
virtual void beginEdit(LvzInt32 index) {}
virtual void endEdit(LvzInt32 index) {}
- virtual bool openFileSelector (LvzFileSelect* sel) { return false; }
- virtual bool closeFileSelector (LvzFileSelect* sel) { return false; }
-
virtual long dispatcher(long opCode, long index, long value, void *ptr, float opt) {
return 0;
}
diff --git a/src/post_merge.sh b/src/post_merge.sh
deleted file mode 100755
index 144cd35..0000000
--- a/src/post_merge.sh
+++ /dev/null
@@ -1,11 +0,0 @@
-#!/bin/sh
-
-rm -f mdaDe-ess.h
-rm -f mdaDe-ess.cpp
-rm -f mdaRePsycho!.h
-rm -f mdaRePsycho!.cpp
-rm -f mdaspecmeter.cpp
-
-sed -i 's/VstInt32/LvzInt32/g' *.h *.cpp
-sed -i 's/VstInt16/LvzInt16/g' *.h *.cpp
-sed -i 's/DECLARE_VST_DEPRECATED/DECLARE_LVZ_DEPRECATED/g' *.h *.cpp
diff --git a/src/pre_merge.sh b/src/pre_merge.sh
deleted file mode 100755
index 238118e..0000000
--- a/src/pre_merge.sh
+++ /dev/null
@@ -1,10 +0,0 @@
-#!/bin/sh
-
-ln -fs mdaDeEss.h mdaDe-ess.h
-ln -fs mdaDeEss.cpp mdaDe-ess.cpp
-ln -fs mdaRePsycho.h mdaRePsycho!.h
-ln -fs mdaRePsycho.cpp mdaRePsycho!.cpp
-
-sed -i 's/LvzInt32/VstInt32/g' *.h *.cpp
-sed -i 's/LvzInt16/VstInt16/g' *.h *.cpp
-sed -i 's/DECLARE_LVZ_DEPRECATED/DECLARE_VST_DEPRECATED/g' *.h *.cpp