An FmodStudio implementation in C for building a shared library for Lua.
It covers the basic functionalities of Fmod, ideal for 2d projects (no 3D attributes implementation yet). Feel free to extend it as per your needs.
This repository provides the source code in order to build the shared library. However, it doesn't include the fmod libraries as it's not under the same licence, meaning you still have to download the fmod API for your platform on their website.
Example using GCC on Linux
LINUX_API=path/to/fmodstudio/linux/api
gcc -c -fPIC src/fmod_lua.c -I$LINUX_API/core/inc -I$LINUX_API/studio/inc
LD_RUN_PATH='$ORIGIN' gcc -o libfmodlua.so -Wl,-undefined,dynamic_lookup -shared fmod_lua.o -L$LINUX_API/studio/lib/x86_64 -L$LINUX_API/core/lib/x86_64 -lfmod -lfmodstudio
See example using Löve.