13
0

partial fix for #5871 - midi-buffer size

This commit is contained in:
Robin Gareus 2014-05-17 22:13:03 +02:00
parent 19d99d4bc5
commit 205b5d97d5

View File

@ -60,7 +60,9 @@ ThreadBuffers::ensure_buffers (ChanCount howmany)
for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) {
size_t count = std::max (scratch_buffers->available().get(*t), howmany.get(*t));
size_t size = _engine->raw_buffer_size (*t) / sizeof (Sample);
size_t size = (*t == DataType::MIDI)
? _engine->raw_buffer_size (*t)
: _engine->raw_buffer_size (*t) / sizeof (Sample);
scratch_buffers->ensure_buffers (*t, count, size);
mix_buffers->ensure_buffers (*t, count, size);