summaryrefslogtreecommitdiff
path: root/libs/ardour/ardour/luaproc.h
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2016-03-19 18:59:10 +0100
committerRobin Gareus <robin@gareus.org>2016-03-19 18:59:10 +0100
commit7840bb1b14dcf2501b2cd6adc3f2960397a115f7 (patch)
tree790d5f447bbe257b7e7aa86dd25b207fd7264df6 /libs/ardour/ardour/luaproc.h
parent57e94ee1c5ff34a6d7fc97ffb1331ff5641acafc (diff)
cache LuaProc Parameters in Processor
This prevents concurrent access to the lua interpreter to query them
Diffstat (limited to 'libs/ardour/ardour/luaproc.h')
-rw-r--r--libs/ardour/ardour/luaproc.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/ardour/ardour/luaproc.h b/libs/ardour/ardour/luaproc.h
index d0560e9953..887280921c 100644
--- a/libs/ardour/ardour/luaproc.h
+++ b/libs/ardour/ardour/luaproc.h
@@ -113,7 +113,6 @@ private:
PBD::ReallocPool _mempool;
LuaState lua;
luabridge::LuaRef * _lua_dsp;
- luabridge::LuaRef * _lua_params;
std::string _script;
std::string _docs;
bool _lua_does_channelmapping;
@@ -127,7 +126,12 @@ private:
bool load_script ();
void lua_print (std::string s);
+ boost::shared_ptr<ScalePoints> parse_scale_points (luabridge::LuaRef*);
+
std::vector<std::pair<bool, int> > _ctrl_params;
+ std::map<int, ARDOUR::ParameterDescriptor> _param_desc;
+ std::map<int, std::string> _param_doc;
+
float* _control_data;
float* _shadow_data;