aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorRobin Haberkorn <robin.haberkorn@googlemail.com>2016-01-05 14:20:16 +0100
committerRobin Haberkorn <robin.haberkorn@googlemail.com>2016-01-05 14:20:16 +0100
commit97df9bd48cb6d4847896377d4eefaead9e2cd75f (patch)
treed41ab27628cc389e12b8bc21bb5a122826398515 /Makefile
parent7d222a52c70cc78e80ad0bab2f7f77dd03ad12b8 (diff)
downloadapplause2-97df9bd48cb6d4847896377d4eefaead9e2cd75f.tar.gz
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
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