Is there any way to include an external .so file into a program? #1484
Replies: 1 comment 1 reply
-
I'm afraid this is not possible, for a couple of reasons:
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've been attempting to write a tracker program (...in case anyone doesn't know, a type of 80s music-making program) which plays back audio through the speakers. On paper, everything should work fine, and I am in fact able to play back the audio. Unfortunately, the dynamically allocated Lua tables have too much overhead for sufficient real-time audio processing capabilities, and it takes far too long to calculate the audio buffer for it to actually work.
Now that's a lot of context, but it leads up to the solution - writing some of the code in C. I've done this before, at the guidance of this post, and I'm 99% sure that this would solve a lot of my performance issues. However, I've found no way to include the type of library Lua can read, a .so file, into a CC:T computer, since require (both
require ''
andrequire("")
syntax) only look for raw-text Lua files.I'm hoping someone here knows a bit more than I do, then - how can I include one of these library files into a CC:T program?
Beta Was this translation helpful? Give feedback.
All reactions