summaryrefslogtreecommitdiff
path: root/libs/ardour/audio_port.cc
diff options
context:
space:
mode:
Diffstat (limited to 'libs/ardour/audio_port.cc')
-rw-r--r--libs/ardour/audio_port.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/libs/ardour/audio_port.cc b/libs/ardour/audio_port.cc
index f8a1018e29..9deda7a861 100644
--- a/libs/ardour/audio_port.cc
+++ b/libs/ardour/audio_port.cc
@@ -54,7 +54,10 @@ void
AudioPort::cycle_end (pframes_t nframes)
{
if (sends_output() && !_buffer->written()) {
- _buffer->silence (nframes);
+ /* we can't use nframes here because the current buffer capacity may
+ be shorter than the full buffer size if we split the cycle.
+ */
+ _buffer->silence (_buffer->capacity());
}
}