try {
if (_lua_does_channelmapping) {
+ Glib::Threads::Mutex::Lock lm (debug_hack);
// run the DSP function
(*_lua_dsp)(&bufs, in, out, nframes, offset);
} else {
}
+ Glib::Threads::Mutex::Lock lm (debug_hack);
// run the DSP function
(*_lua_dsp)(in_map, out_map, nframes);
}
return 0;
}
int lp = _ctrl_params[port].second;
+ Glib::Threads::Mutex::Lock lm (debug_hack);
luabridge::LuaRef lr = (*_lua_params)[lp];
return (lr["default"]).cast<float> ();
}
assert (port <= parameter_count ());
int lp = _ctrl_params[port].second;
+ Glib::Threads::Mutex::Lock lm (debug_hack);
luabridge::LuaRef lr = (*_lua_params)[lp];
desc.lower = (lr["min"]).cast<float> ();
desc.upper = (lr["max"]).cast<float> ();
LuaProc::get_parameter_docs (uint32_t port) const {
assert (port <= parameter_count ());
int lp = _ctrl_params[port].second;
+ Glib::Threads::Mutex::Lock lm (debug_hack);
luabridge::LuaRef lr = (*_lua_params)[lp];
luabridge::LuaRef doc = lr["doc"];
if (doc.isString ()) {
{
if (param.type () == PluginAutomation && param.id () < parameter_count ()) {
int lp = _ctrl_params[param.id ()].second;
+ Glib::Threads::Mutex::Lock lm (debug_hack);
luabridge::LuaRef lr = (*_lua_params)[lp];
return (lr["name"]).cast<std::string> ();
} else {
LuaProc::get_scale_points (uint32_t port) const
{
int lp = _ctrl_params[port].second;
+ Glib::Threads::Mutex::Lock lm (debug_hack);
luabridge::LuaRef lr = (*_lua_params)[lp];
if (!lr["scalepoints"].isTable()) {