diff options
author | David Robillard <d@drobilla.net> | 2008-05-22 16:44:22 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-05-22 16:44:22 +0000 |
commit | f360ef94da46a560d667a51988ba66730696e812 (patch) | |
tree | 6bd4daa9fa693ac8f1c1ded4ee35fc0915597c3d /libs/ardour/buffer_set.cc | |
parent | 8a97a89f3e43ca7ad175d7002e5f4679aa3f9a41 (diff) |
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
Diffstat (limited to 'libs/ardour/buffer_set.cc')
-rw-r--r-- | libs/ardour/buffer_set.cc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libs/ardour/buffer_set.cc b/libs/ardour/buffer_set.cc index 3dc580caa2..280f70693b 100644 --- a/libs/ardour/buffer_set.cc +++ b/libs/ardour/buffer_set.cc @@ -103,6 +103,12 @@ BufferSet::ensure_buffers(DataType type, size_t num_buffers, size_t buffer_capac if (num_buffers == 0) return; + // FIXME: Kludge to make MIDI buffers larger (size is bytes, not frames) + // See MidiPort::MidiPort + // We probably need a map<DataType, size_t> parameter for capacity + if (type == DataType::MIDI) + buffer_capacity *= 4; + // The vector of buffers of the type we care about BufferVec& bufs = _buffers[type]; |