summaryrefslogtreecommitdiff
path: root/libs/ardour/luaproc.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2020-02-26 17:50:08 +0100
committerRobin Gareus <robin@gareus.org>2020-02-26 17:50:08 +0100
commitd27cdb3855eb679dcf66fa37312dcab5aae100dd (patch)
treeaafda3bf4fb8a5440e13f6cff974f16d0743f259 /libs/ardour/luaproc.cc
parenta5c956883d4a0efa3425179cec87717b32206619 (diff)
Fix DSP::process_map() plugin-pin I/O map handing
The previous approach failed in case where PluginInsert uses no-inplace buffers with a linear map. Since buffers are replicated up to a total of number of all (inputs + outputs), the number of output buffers could not be determined. There was insufficient information using the I/O map alone. With a known number of outputs processing and applying the i/o map is also a lot easier and faster. This break the API of process_map().
Diffstat (limited to 'libs/ardour/luaproc.cc')
-rw-r--r--libs/ardour/luaproc.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc
index d23995cef9..bbde673299 100644
--- a/libs/ardour/luaproc.cc
+++ b/libs/ardour/luaproc.cc
@@ -571,7 +571,7 @@ LuaProc::configure_io (ChanCount in, ChanCount out)
luabridge::LuaRef lua_dsp_configure = luabridge::getGlobal (L, "dsp_configure");
if (lua_dsp_configure.type () == LUA_TFUNCTION) {
try {
- luabridge::LuaRef io = lua_dsp_configure (&in, &out);
+ luabridge::LuaRef io = lua_dsp_configure (in, out);
if (io.isTable ()) {
ChanCount lin (_selected_in);
ChanCount lout (_selected_out);