mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 20:26:30 +01:00
LuaProc: use effective sample-rate, like other plugin instances
This commit is contained in:
parent
a36ddb72dd
commit
771cc4581e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue