diff options
Diffstat (limited to 'src/server/BlockImpl.cpp')
-rw-r--r-- | src/server/BlockImpl.cpp | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/server/BlockImpl.cpp b/src/server/BlockImpl.cpp index 36bf3e30..96ae0795 100644 --- a/src/server/BlockImpl.cpp +++ b/src/server/BlockImpl.cpp @@ -106,12 +106,15 @@ BlockImpl::prepare_poly(BufferFactory& bufs, uint32_t poly) { ThreadManager::assert_thread(THREAD_PRE_PROCESS); - if (!_polyphonic) + if (!_polyphonic) { poly = 1; + } - if (_ports) - for (uint32_t i = 0; i < _ports->size(); ++i) + if (_ports) { + for (uint32_t i = 0; i < _ports->size(); ++i) { _ports->at(i)->prepare_poly(bufs, poly); + } + } return true; } @@ -119,14 +122,17 @@ BlockImpl::prepare_poly(BufferFactory& bufs, uint32_t poly) bool BlockImpl::apply_poly(RunContext& context, uint32_t poly) { - if (!_polyphonic) + if (!_polyphonic) { poly = 1; + } _polyphony = poly; - if (_ports) - for (uint32_t i = 0; i < num_ports(); ++i) + if (_ports) { + for (uint32_t i = 0; i < num_ports(); ++i) { _ports->at(i)->apply_poly(context, poly); + } + } return true; } |