diff options
Diffstat (limited to 'src/server/InputPort.cpp')
-rw-r--r-- | src/server/InputPort.cpp | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/src/server/InputPort.cpp b/src/server/InputPort.cpp index 6e72f6f6..fe613f31 100644 --- a/src/server/InputPort.cpp +++ b/src/server/InputPort.cpp @@ -217,12 +217,15 @@ SampleCount InputPort::next_value_offset(SampleCount offset, SampleCount end) const { SampleCount earliest = end; + + if (_user_buffer) { + earliest = _user_buffer->next_value_offset(offset, end); + } + for (const auto& arc : _arcs) { - if (arc.tail()->type() != this->type()) { - const SampleCount o = arc.tail()->next_value_offset(offset, end); - if (o < earliest) { - earliest = o; - } + const SampleCount o = arc.tail()->next_value_offset(offset, end); + if (o < earliest) { + earliest = o; } } |