summaryrefslogtreecommitdiff
path: root/src/audio/engine.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio/engine.c')
-rw-r--r--src/audio/engine.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/audio/engine.c b/src/audio/engine.c
index 4d2caba..ec43728 100644
--- a/src/audio/engine.c
+++ b/src/audio/engine.c
@@ -29,6 +29,8 @@ int ma_engine_init_bind(lua_State *L)
lua_pushinteger(L, result);
lua_pushvalue(L, engine_index);
lua_remove(L, engine_index);
+ luaL_getmetatable(L, ma_engine_tname);
+ lua_setmetatable(L, -2);
return 2;
}
@@ -41,15 +43,6 @@ int ma_engine_uninit_bind(lua_State *L)
}
-int ma_engine_get_endpoint_bind(lua_State *L)
-{
- ma_engine * pEngine = luaL_checkudata(L, 1, ma_engine_tname);
- ma_node* bind_result = ma_engine_get_endpoint(pEngine);
- ma_push_node(L, bind_result);
- return 1;
-}
-
-
int ma_engine_get_time_bind(lua_State *L)
{
ma_engine * pEngine = luaL_checkudata(L, 1, ma_engine_tname);