summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/buffer_set.h
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2009-05-04 20:11:02 +0000
committerDavid Robillard <d@drobilla.net>2009-05-04 20:11:02 +0000
commit3a6fa245c2569983c02414bea4c3fcfd7c21e746 (patch)
tree05a416b9af221bead0801fda29cd02ca3d60a31d /libs/ardour/ardour/buffer_set.h
parentda8cf83b72db774e488f3f7f1a4a1ef1f906e3b8 (diff)
Fix building without LV2.
git-svn-id: svn://localhost/ardour2/branches/3.0@5041 d708f5d6-7413-0410-9779-e7cbd77b26cf
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;