summaryrefslogtreecommitdiff
path: root/libs/ardour/plugin_insert.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-07-16 16:47:09 +0200
committerRobin Gareus <robin@gareus.org>2017-07-16 17:09:22 +0200
commit07aeb12d3ae30338c1dc443e209700a2d26eee7b (patch)
treedaac2b51e9c91e0b7e60703bf5f0b9b97fdb3b70 /libs/ardour/plugin_insert.cc
parent5aecfc5acb41f6d05804a88b99eec159e96a66c9 (diff)
Some notes for later.
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r--libs/ardour/plugin_insert.cc10
1 files changed, 9 insertions, 1 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc
index 6b733ee1d1..7cb35ed6ec 100644
--- a/libs/ardour/plugin_insert.cc
+++ b/libs/ardour/plugin_insert.cc
@@ -1128,7 +1128,13 @@ PluginInsert::bypass (BufferSet& bufs, pframes_t nframes)
void
PluginInsert::silence (framecnt_t nframes, framepos_t start_frame)
{
+ // XXX This method is never called, Route::silence skips PIs
+ // we should probably use it during bypass ()
+ // and call automation_run()
+ assert (0);
+
if (!active ()) {
+ // XXX delaybuffers need to be offset by nframes
return;
}
@@ -1169,8 +1175,10 @@ PluginInsert::run (BufferSet& bufs, framepos_t start_frame, framepos_t end_frame
}
} else {
+ // XXX should call ::silence() to run plugin(s) for consistent load.
+ // We'll need to change this anyway when bypass can be automated
bypass (bufs, nframes);
- automation_run (start_frame, nframes);
+ automation_run (start_frame, nframes); // evaluate automation only
_delaybuffers.flush ();
}