projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
19d99d4
)
partial fix for #5871 - midi-buffer size
author
Robin Gareus
<robin@gareus.org>
Sat, 17 May 2014 20:13:03 +0000
(22:13 +0200)
committer
Robin Gareus
<robin@gareus.org>
Sat, 17 May 2014 20:13:03 +0000
(22:13 +0200)
libs/ardour/thread_buffers.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/thread_buffers.cc
b/libs/ardour/thread_buffers.cc
index e469187ce9497709d8a54240a05aef9a3ed8757e..94490ca912487420c4fdf956ee60b555fb93e7cc 100644
(file)
--- a/
libs/ardour/thread_buffers.cc
+++ b/
libs/ardour/thread_buffers.cc
@@
-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);