Decoding Error while loading external native library (DLL)
Posted: Tue Jan 22, 2013 3:51 pm
Hello everyone, i'm new to Love2D and i'm experimenting with it, to understand its capabilities.
I've written a library (DLL) to analyze audio tracks, and i would like to use it in Love2D.
Therefore i need to load a native library in lua.
I've written an empty lua wrapper and an empty Love application to try out the loading of native library in Lua.
However after the library is loaded (i'm sure Love actually finds and tries to load the library), it prints me a "Decoding Error: Not enough space" error.
As far as i can tell by looking in this forum, is a string encoding related issue.
I've already looked at the source code for the AudioIn project in this forum (viewtopic.php?f=5&t=2076), even though i didn't find out why my version isn't working.
Has anyone done this succesfully before?
I've attached the lua source file the tries to load the library, and the C++ source of the DLL.
Thx, Corralx
EDIT:
I've tried this with others Lua framework and plain Lua code, and it works as expected.
Maybe there is something broken/not supported in Love?
I've written a library (DLL) to analyze audio tracks, and i would like to use it in Love2D.
Therefore i need to load a native library in lua.
I've written an empty lua wrapper and an empty Love application to try out the loading of native library in Lua.
However after the library is loaded (i'm sure Love actually finds and tries to load the library), it prints me a "Decoding Error: Not enough space" error.
As far as i can tell by looking in this forum, is a string encoding related issue.
I've already looked at the source code for the AudioIn project in this forum (viewtopic.php?f=5&t=2076), even though i didn't find out why my version isn't working.
Has anyone done this succesfully before?
I've attached the lua source file the tries to load the library, and the C++ source of the DLL.
Thx, Corralx
EDIT:
I've tried this with others Lua framework and plain Lua code, and it works as expected.
Maybe there is something broken/not supported in Love?