Olby Posted October 13, 2014 Share Posted October 13, 2014 Hi, I am looking for some help getting the lovepdaudio to run with Leadwerks. It works on its own (through lua52.exe) so the code it self is not an issue. However when I try to "require" the lib in Leadwerks LUA as soon as it hits the: lua_newtable(L); ..line it crashes Leadwerks. My next attempt involved checking the LUA state right before the crash and it seems like it is LUA_YIELD, on the contrary when the same code is executed in LUA interpreter the state is LUA_OK and it happily proceeds. I don't know much about LUA C-API so I hope someone can have a look at the code below (its all there is). Attached is the source code. The crash is occurring at the very bottom in a function which registers the lib with LUA. Pure Data is visual programming language for multimedia applications. libpd is an embeddable version of Pure Data and lovepdaudio is a wrapper for LUA. My main interest is to get it running for some procedural audio goodness in Leadwerks without the necessity to recompile C++ (if libpd is used directly). Thanks. lovepdaudio.cpp Quote Intel Core i7 Quad 2.3 Ghz, 8GB RAM, GeForce GT 630M 2GB, Windows 10 (x64) Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.