Add a noise generator (Lua DSP)
[ardour.git] / libs / ardour / ardour / luascripting.h
index 1e7833fc543002db095cb97a579f36794652a0cd..a184c4058b91cd7d989b954e85c5e35e8fc868ec 100644 (file)
@@ -38,6 +38,14 @@ class LIBARDOUR_API LuaScriptInfo {
                EditorHook,
                EditorAction,
                Snippet,
+               SessionInit,
+       };
+
+       /* binary flags, valid for ActionScripts */
+       enum ScriptSubType {
+               None          = 0x00,
+               RouteSetup    = 0x01,
+               SessionSetup  = 0x02,
        };
 
        static std::string type2str (const ScriptType t);
@@ -45,6 +53,7 @@ class LIBARDOUR_API LuaScriptInfo {
 
        LuaScriptInfo (ScriptType t, const std::string &n, const std::string &p, const std::string &uid)
        : type (t)
+       , subtype (0)
        , name (n)
        , path (p)
        , unique_id (uid)
@@ -53,6 +62,8 @@ class LIBARDOUR_API LuaScriptInfo {
        virtual ~LuaScriptInfo () { }
 
        ScriptType type;
+       uint32_t   subtype;
+
        std::string name;
        std::string path;
        std::string unique_id;
@@ -107,7 +118,7 @@ public:
 
        static LuaScriptInfoPtr script_info (const std::string &script);
        static bool try_compile (const std::string&, const LuaScriptParamList&);
-       static std::string get_factory_bytecode (const std::string&);
+       static std::string get_factory_bytecode (const std::string&, const std::string& ffn = "factory", const std::string& fp = "f");
        static std::string user_script_dir ();
 
 private:
@@ -123,6 +134,8 @@ private:
        LuaScriptList *_sl_hook;
        LuaScriptList *_sl_action;
        LuaScriptList *_sl_snippet;
+       LuaScriptList *_sl_setup;
+       LuaScriptList *_sl_tracks;
        LuaScriptList  _empty_script_info;
 
        Glib::Threads::Mutex _lock;