From 97df9bd48cb6d4847896377d4eefaead9e2cd75f Mon Sep 17 00:00:00 2001 From: Robin Haberkorn Date: Tue, 5 Jan 2016 14:20:16 +0100 Subject: rewritten Stream:play() as a Lua function * the low-level C part is now implemented in a normal C function applause_push_sample() which is called using the FFI API * this is supposedly faster than the old Lua/C way, but the speed improvement seems to be miniscule. However changes like this are still good since they simplify the C core. * speed improvements will probably be larger for the MIDI*Stream functions since here we call Lua/C functions at sample rate. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 999fac3..5102469 100644 --- a/Makefile +++ b/Makefile @@ -15,6 +15,10 @@ CFLAGS += $(LUA_CFLAGS) $(READLINE_CFLAGS) $(JACK_CFLAGS) LDFLAGS += $(LUA_LDFLAGS) $(READLINE_LDFLAGS) $(JACK_LDFLAGS) \ -lpthread +# For exporting function from applause.c that can be called +# with the LuaJIT FFI interface: +LDFLAGS += -rdynamic + all : applause applause : applause.o -- cgit v1.2.3