From 3a6fa245c2569983c02414bea4c3fcfd7c21e746 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Mon, 4 May 2009 20:11:02 +0000 Subject: Fix building without LV2. git-svn-id: svn://localhost/ardour2/branches/3.0@5041 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/ardour/buffer_set.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'libs/ardour/ardour/buffer_set.h') 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 _buffers; +#ifdef HAVE_SLV2 /// LV2 MIDI buffers (for conversion to/from MIDI buffers) - // typedef std::vector< std::pair > LV2Buffers; LV2Buffers _lv2_buffers; +#endif /// Use counts (there may be more actual buffers than this) ChanCount _count; -- cgit v1.2.3