13
0

LuaProc: use effective sample-rate, like other plugin instances

This commit is contained in:
Robin Gareus 2023-07-03 00:31:21 +02:00
parent a36ddb72dd
commit 771cc4581e
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -315,7 +315,7 @@ LuaProc::load_script ()
luabridge::LuaRef lua_dsp_init = luabridge::getGlobal (L, "dsp_init"); luabridge::LuaRef lua_dsp_init = luabridge::getGlobal (L, "dsp_init");
if (lua_dsp_init.type () == LUA_TFUNCTION) { if (lua_dsp_init.type () == LUA_TFUNCTION) {
try { try {
lua_dsp_init (_session.nominal_sample_rate ()); lua_dsp_init (_session.sample_rate ());
} catch (luabridge::LuaException const& e) { } catch (luabridge::LuaException const& e) {
#ifndef NDEBUG #ifndef NDEBUG
std::cerr << "LuaException:" << e.what () << std::endl; std::cerr << "LuaException:" << e.what () << std::endl;