From 771cc4581eeefc84b8f37799b12390b6662575d4 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Mon, 3 Jul 2023 00:31:21 +0200 Subject: [PATCH] LuaProc: use effective sample-rate, like other plugin instances --- libs/ardour/luaproc.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/ardour/luaproc.cc b/libs/ardour/luaproc.cc index bef72ee0d2..dce4d6ea88 100644 --- a/libs/ardour/luaproc.cc +++ b/libs/ardour/luaproc.cc @@ -315,7 +315,7 @@ LuaProc::load_script () luabridge::LuaRef lua_dsp_init = luabridge::getGlobal (L, "dsp_init"); if (lua_dsp_init.type () == LUA_TFUNCTION) { try { - lua_dsp_init (_session.nominal_sample_rate ()); + lua_dsp_init (_session.sample_rate ()); } catch (luabridge::LuaException const& e) { #ifndef NDEBUG std::cerr << "LuaException:" << e.what () << std::endl;