From f360ef94da46a560d667a51988ba66730696e812 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Thu, 22 May 2008 16:44:22 +0000 Subject: Arbitrarily increase MIDI process buffer size to avoid overruns with very dense data. git-svn-id: svn://localhost/ardour2/branches/3.0@3389 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/midi_port.cc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libs/ardour/midi_port.cc') diff --git a/libs/ardour/midi_port.cc b/libs/ardour/midi_port.cc index fc48218efa..6b097930f1 100644 --- a/libs/ardour/midi_port.cc +++ b/libs/ardour/midi_port.cc @@ -31,7 +31,9 @@ MidiPort::MidiPort (const std::string& name, Flags flags, bool external, nframes , BaseMidiPort (name, flags) , PortFacade (name, flags) { - _buffer = new MidiBuffer (capacity); + // FIXME: size kludge (see BufferSet::ensure_buffers) + // Jack needs to tell us this + _buffer = new MidiBuffer (capacity * 4); if (external) { /* external ports use the same buffer for the jack port (_ext_port) -- cgit v1.2.3