summaryrefslogtreecommitdiff
path: root/libs/ardour/panner_shell.cc
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2011-10-07 16:30:27 +0000
committerDavid Robillard <d@drobilla.net>2011-10-07 16:30:27 +0000
commit212de13d428884a28e691f5b5b17cdf615e7e4ea (patch)
tree75593616a1b6cd17f432598a0f10975ea1d3353b /libs/ardour/panner_shell.cc
parent2f169b181f80d940b7c20030293910731612efa3 (diff)
Make panner tolerate 0 audio inputs (fix #4353).
git-svn-id: svn://localhost/ardour2/branches/3.0@10194 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/panner_shell.cc')
-rw-r--r--libs/ardour/panner_shell.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/libs/ardour/panner_shell.cc b/libs/ardour/panner_shell.cc
index fae60c3458..8c0236bd9f 100644
--- a/libs/ardour/panner_shell.cc
+++ b/libs/ardour/panner_shell.cc
@@ -271,6 +271,14 @@ PannerShell::distribute_no_automation (BufferSet& inbufs, BufferSet& outbufs, pf
void
PannerShell::run (BufferSet& inbufs, BufferSet& outbufs, framepos_t start_frame, framepos_t end_frame, pframes_t nframes)
{
+ if (inbufs.count().n_audio() == 0) {
+ /* Input has no audio buffers (e.g. Aux Send in a MIDI track at a
+ point with no audio because there is no preceding instrument
+ */
+ outbufs.silence(nframes, 0);
+ return;
+ }
+
if (outbufs.count().n_audio() == 0) {
// Failing to deliver audio we were asked to deliver is a bug
assert(inbufs.count().n_audio() == 0);