diff options
author | David Robillard <d@drobilla.net> | 2012-02-24 22:09:30 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-02-24 22:09:30 +0000 |
commit | 4f96a1006bbee939e258c844e49d41e207184b48 (patch) | |
tree | ec1d3bbf196c358aa1745d7b4c60b11e2a0ce40d /libs/ardour/ardour | |
parent | 78b1139d35f913ad4880ed103455e66ba7fd321f (diff) |
Clean up LV2 code in preparation for atom support.
Merge all parameter_is_* boolvectors into a single vector of flags (smaller/faster).
git-svn-id: svn://localhost/ardour2/branches/3.0@11515 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour')
-rw-r--r-- | libs/ardour/ardour/lv2_plugin.h | 25 |
1 files changed, 11 insertions, 14 deletions
diff --git a/libs/ardour/ardour/lv2_plugin.h b/libs/ardour/ardour/lv2_plugin.h index 14fbefd51c..874baef533 100644 --- a/libs/ardour/ardour/lv2_plugin.h +++ b/libs/ardour/ardour/lv2_plugin.h @@ -1,4 +1,3 @@ - /* Copyright (C) 2008-2011 Paul Davis Author: David Robillard @@ -16,7 +15,6 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. - */ #ifndef __ardour_lv2_plugin_h__ @@ -26,12 +24,6 @@ #include <string> #include <vector> -#include <dlfcn.h> - -#include "pbd/stateful.h" - -#include <jack/types.h> - #include "ardour/plugin.h" #include "ardour/uri_map.h" @@ -98,7 +90,7 @@ class LV2Plugin : public ARDOUR::Plugin bool parameter_is_audio (uint32_t) const; bool parameter_is_control (uint32_t) const; - bool parameter_is_midi (uint32_t) const; + bool parameter_is_event (uint32_t) const; bool parameter_is_input (uint32_t) const; bool parameter_is_output (uint32_t) const; bool parameter_is_toggled (uint32_t) const; @@ -130,12 +122,17 @@ class LV2Plugin : public ARDOUR::Plugin float* _latency_control_port; PBD::ID _insert_id; - std::vector<bool> _port_is_input; - std::vector<bool> _port_is_output; - std::vector<bool> _port_is_midi; - std::vector<bool> _port_is_audio; - std::vector<bool> _port_is_control; + typedef enum { + PORT_INPUT = 1, + PORT_OUTPUT = 1 << 1, + PORT_EVENT = 1 << 2, + PORT_AUDIO = 1 << 3, + PORT_CONTROL = 1 << 4 + } PortFlag; + + typedef unsigned PortFlags; + std::vector<PortFlags> _port_flags; std::map<std::string,uint32_t> _port_indices; typedef struct { |