aboutsummaryrefslogtreecommitdiffhomepage
path: root/backends/lua.h
diff options
context:
space:
mode:
authorcbdev <cb@cbcdn.com>2019-07-13 17:51:11 +0200
committercbdev <cb@cbcdn.com>2019-07-13 17:51:11 +0200
commitee4a46105acecb6a7adc1e7189e8b0a66404b421 (patch)
treed7b8b48c917027fcf2ef09c1896b943ba47ce0b0 /backends/lua.h
parent86b9706220ca285db961ea43ec0859ea99cc9f71 (diff)
downloadmidimonster-ee4a46105acecb6a7adc1e7189e8b0a66404b421.tar.gz
midimonster-ee4a46105acecb6a7adc1e7189e8b0a66404b421.tar.bz2
midimonster-ee4a46105acecb6a7adc1e7189e8b0a66404b421.zip
Improved Lua backend with intervals
Diffstat (limited to 'backends/lua.h')
-rw-r--r--backends/lua.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/backends/lua.h b/backends/lua.h
index 27e1afd..ccffef7 100644
--- a/backends/lua.h
+++ b/backends/lua.h
@@ -17,5 +17,15 @@ static int lua_shutdown();
typedef struct /*_lua_instance_data*/ {
size_t channels;
char** channel_name;
+ int* reference;
+ double* input;
+ double* output;
lua_State* interpreter;
} lua_instance_data;
+
+typedef struct /*_lua_interval_callback*/ {
+ uint64_t interval;
+ uint64_t delta;
+ lua_State* interpreter;
+ int reference;
+} lua_timer;