summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/buffer_set.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/ardour/buffer_set.h')
-rw-r--r--libs/ardour/ardour/buffer_set.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/libs/ardour/ardour/buffer_set.h b/libs/ardour/ardour/buffer_set.h
index 72f45762c7..9d7ba6d6ae 100644
--- a/libs/ardour/ardour/buffer_set.h
+++ b/libs/ardour/ardour/buffer_set.h
@@ -31,7 +31,9 @@ class Buffer;
class AudioBuffer;
class MidiBuffer;
class PortSet;
+#ifdef HAVE_SLV2
class LV2EventBuffer;
+#endif
/** A set of buffers of various types.
*
@@ -78,6 +80,7 @@ public:
return (MidiBuffer&)get(DataType::MIDI, i);
}
+#ifdef HAVE_SLV2
/** 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 */
@@ -85,6 +88,7 @@ public:
/** Flush modified LV2 event output buffers back to Ardour buffers */
void flush_lv2_midi(bool input, size_t i);
+#endif
void read_from(BufferSet& in, nframes_t nframes);
@@ -143,10 +147,11 @@ private:
/// Vector of vectors, indexed by DataType
std::vector<BufferVec> _buffers;
+#ifdef HAVE_SLV2
/// LV2 MIDI buffers (for conversion to/from MIDI buffers)
- //
typedef std::vector< std::pair<bool, LV2EventBuffer*> > LV2Buffers;
LV2Buffers _lv2_buffers;
+#endif
/// Use counts (there may be more actual buffers than this)
ChanCount _count;