summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/buffer_set.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-02-25 04:16:42 +0000
committerDavid Robillard <d@drobilla.net>2012-02-25 04:16:42 +0000
commitf122504784e8e38be7d7df87af3f2a7044a7f14c (patch)
tree7c172067c6d9979db7348c8b42a1ccc897a3161b /libs/ardour/ardour/buffer_set.h
parent4f96a1006bbee939e258c844e49d41e207184b48 (diff)
Support LV2 atom sequence ports alongside old event ports.
git-svn-id: svn://localhost/ardour2/branches/3.0@11517 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/ardour/buffer_set.h')
-rw-r--r--libs/ardour/ardour/buffer_set.h16
1 files changed, 10 insertions, 6 deletions
diff --git a/libs/ardour/ardour/buffer_set.h b/libs/ardour/ardour/buffer_set.h
index 4db1c34557..5049eda70a 100644
--- a/libs/ardour/ardour/buffer_set.h
+++ b/libs/ardour/ardour/buffer_set.h
@@ -37,15 +37,16 @@ struct _VstMidiEvent;
typedef struct _VstMidiEvent VstMidiEvent;
#endif
+#ifdef LV2_SUPPORT
+typedef struct LV2_Evbuf_Impl LV2_Evbuf;
+#endif
+
namespace ARDOUR {
class Buffer;
class AudioBuffer;
class MidiBuffer;
class PortSet;
-#ifdef LV2_SUPPORT
-class LV2EventBuffer;
-#endif
/** A set of buffers of various types.
*
@@ -113,8 +114,11 @@ public:
#ifdef LV2_SUPPORT
/** Get a MIDI buffer translated into an LV2 MIDI buffer for use with plugins.
* The index here corresponds directly to MIDI buffer numbers (i.e. the index
- * passed to get_midi), translation back and forth will happen as needed */
- LV2EventBuffer& get_lv2_midi(bool input, size_t i);
+ * passed to get_midi), translation back and forth will happen as needed.
+ * If atom_type is 0 the returned buffer will be in the old event API
+ * format. Otherwise, atom_type must be the URID for atom:Sequence.
+ */
+ LV2_Evbuf* get_lv2_midi(bool input, size_t i, uint32_t atom_type);
/** Flush modified LV2 event output buffers back to Ardour buffers */
void flush_lv2_midi(bool input, size_t i);
@@ -175,7 +179,7 @@ private:
#ifdef LV2_SUPPORT
/// LV2 MIDI buffers (for conversion to/from MIDI buffers)
- typedef std::vector< std::pair<bool, LV2EventBuffer*> > LV2Buffers;
+ typedef std::vector< std::pair<bool, LV2_Evbuf*> > LV2Buffers;
LV2Buffers _lv2_buffers;
#endif