mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-20 21:56:30 +01:00
partial fix for #5871 - midi-buffer size
This commit is contained in:
parent
ce8a679255
commit
f28e54aceb
1 changed files with 3 additions and 1 deletions
|
|
@ -60,7 +60,9 @@ ThreadBuffers::ensure_buffers (ChanCount howmany)
|
||||||
|
|
||||||
for (DataType::iterator t = DataType::begin(); t != DataType::end(); ++t) {
|
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 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);
|
scratch_buffers->ensure_buffers (*t, count, size);
|
||||||
mix_buffers->ensure_buffers (*t, count, size);
|
mix_buffers->ensure_buffers (*t, count, size);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue