Fix building without LV2.

git-svn-id: svn://localhost/ardour2/branches/3.0@5041 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
David Robillard
2009-05-04 20:11:02 +00:00
parent da8cf83b72
commit 3a6fa245c2
5 changed files with 19 additions and 8 deletions

View File

@@ -20,12 +20,14 @@
#include <algorithm>
#include "ardour/buffer.h"
#include "ardour/buffer_set.h"
#include "ardour/lv2_event_buffer.h"
#include "ardour/lv2_plugin.h"
#include "ardour/midi_buffer.h"
#include "ardour/port.h"
#include "ardour/port_set.h"
#include "ardour/audioengine.h"
#ifdef HAVE_SLV2
#include "ardour/lv2_plugin.h"
#include "ardour/lv2_event_buffer.h"
#endif
namespace ARDOUR {
@@ -127,6 +129,7 @@ BufferSet::ensure_buffers(DataType type, size_t num_buffers, size_t buffer_capac
_available.set(type, num_buffers);
}
#ifdef HAVE_SLV2
// Ensure enough low level MIDI format buffers are available for conversion
// in both directions (input & output, out-of-place)
if (type == DataType::MIDI && _lv2_buffers.size() < _buffers[type].size() * 2) {
@@ -134,6 +137,7 @@ BufferSet::ensure_buffers(DataType type, size_t num_buffers, size_t buffer_capac
_lv2_buffers.push_back(std::make_pair(false, new LV2EventBuffer(buffer_capacity)));
}
}
#endif
// Post-conditions
assert(bufs[0]->type() == type);
@@ -160,6 +164,8 @@ BufferSet::get(DataType type, size_t i)
return *_buffers[type][i];
}
#ifdef HAVE_SLV2
LV2EventBuffer&
BufferSet::get_lv2_midi(bool input, size_t i)
{
@@ -197,6 +203,8 @@ BufferSet::flush_lv2_midi(bool input, size_t i)
}
}
#endif
// FIXME: make 'in' const
void
BufferSet::read_from (BufferSet& in, nframes_t nframes)