mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-24 14:17:21 +01:00
Make panner tolerate 0 audio inputs (fix #4353).
git-svn-id: svn://localhost/ardour2/branches/3.0@10194 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
2f169b181f
commit
212de13d42
1 changed files with 8 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue