diff --git a/lib/Makefile b/lib/Makefile
index 192277f..7c7bb63 100644
--- a/lib/Makefile
+++ b/lib/Makefile
@@ -1,12 +1,11 @@
CLEANFILES =
RTBUF_MODULES =
-all:
- ${MAKE} ${RTBUF_MODULES}
+all: rtbuf_modules
clean:
rm -rf .libs *.o *.lo *.la ${CLEANFILES}
-.PHONY: all clean
+.PHONY: all clean rtbuf_modules
.include <config.mk>
diff --git a/lib/configure b/lib/configure
index 0a0994a..bc8fbcd 100755
--- a/lib/configure
+++ b/lib/configure
@@ -46,6 +46,8 @@ done
LIBDIR=/usr/local/lib
echo "LIBDIR = $LIBDIR" >> ${CONFIG_MK}
+RTBUF_MODULES=
+
for SRC in $SOURCES; do
SRC_LO="$(c2lo "$SRC")"
echo >> ${CONFIG_MK}
@@ -57,5 +59,13 @@ for SRC in $SOURCES; do
echo "$SRC_LA: $SRC_LO" >> ${CONFIG_MK}
echo "\t${LIBTOOL} --tag=CC --mode=link \${CC} -shared \${LDFLAGS} $SRC_LO -o $SRC_LA -rpath $LIBDIR" >> ${CONFIG_MK}
echo >> ${CONFIG_MK}
- echo "RTBUF_MODULES += $SRC_LA" >> ${CONFIG_MK}
+ RTBUF_MODULES="$RTBUF_MODULES $SRC_LA"
+done
+
+echo "rtbuf_modules:${RTBUF_MODULES}" >> ${CONFIG_MK}
+
+for TYPE_SRC in $TYPE_SOURCES; do
+ TYPE_PROG="$(c2prog "$TYPE_SRC")"
+ TYPE_H="${TYPE_PROG}.h"
+ rm "$TYPE_H"
done
diff --git a/lib/dynamic/limiter.c b/lib/dynamic/limiter.c
index 073e9c3..885ff56 100644
--- a/lib/dynamic/limiter.c
+++ b/lib/dynamic/limiter.c
@@ -1,6 +1,6 @@
/*
- * Copyright 2019 Thomas de Grivel <thoxdg@gmail.com> +33614550127
- * Copyright 2019 Judy Najnudel
+ * Copyright 2019-2021 Thomas de Grivel <thoxdg@gmail.com>
+ * Copyright 2019 Judy Najnudel <judy.najnudel@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -17,11 +17,11 @@
#include <float.h>
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
-#include <rtbuf/dynamic.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
+#include "../dynamic.h"
s_rtbuf_lib_proc_in rtbuf_dynamic_limiter_in[] =
{{ "signal" , RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/glfw3/keyboard.c b/lib/glfw3/keyboard.c
index 0dbc65c..00a966e 100644
--- a/lib/glfw3/keyboard.c
+++ b/lib/glfw3/keyboard.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -18,13 +18,13 @@
#include <stdio.h>
#include <string.h>
#include <strings.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
-#include <rtbuf/music.h>
-#include <rtbuf/music_type.h>
-#include <rtbuf/glfw3.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
+#include "../music.h"
+#include "../music_type.h"
+#include "../glfw3.h"
float ceilf (float x);
diff --git a/lib/glfw3/oscilloscope.c b/lib/glfw3/oscilloscope.c
index 54bac4c..370331f 100644
--- a/lib/glfw3/oscilloscope.c
+++ b/lib/glfw3/oscilloscope.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -14,13 +14,13 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
-#include <rtbuf/music.h>
-#include <rtbuf/music_type.h>
-#include <rtbuf/glfw3.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
+#include "../music.h"
+#include "../music_type.h"
+#include "../glfw3.h"
s_rtbuf_lib_proc_in rtbuf_glfw3_oscilloscope_in[] =
{{ "black", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/portaudio/input.c b/lib/portaudio/input.c
index ad93383..1bd73b1 100644
--- a/lib/portaudio/input.c
+++ b/lib/portaudio/input.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -17,12 +17,12 @@
#include <portaudio.h>
#include <stdio.h>
#include <strings.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
-#include <rtbuf/portaudio.h>
-#include <rtbuf/portaudio_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
+#include "../portaudio.h"
+#include "../portaudio_type.h"
s_rtbuf_lib_proc_out rtbuf_portaudio_input_out[] = {
{ "left", RTBUF_SIGNAL_TYPE },
diff --git a/lib/portaudio/output.c b/lib/portaudio/output.c
index fa97397..73a8e11 100644
--- a/lib/portaudio/output.c
+++ b/lib/portaudio/output.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -18,12 +18,12 @@
#include <portaudio.h>
#include <stdio.h>
#include <strings.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
-#include <rtbuf/portaudio.h>
-#include <rtbuf/portaudio_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
+#include "../portaudio.h"
+#include "../portaudio_type.h"
int g_initialized = 0;
diff --git a/lib/reverb/fdn4.c b/lib/reverb/fdn4.c
index 79b786f..42e67f2 100644
--- a/lib/reverb/fdn4.c
+++ b/lib/reverb/fdn4.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com>
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -18,8 +18,8 @@
#include <stdio.h>
#include <strings.h>
#include "hadamard.h"
-#include "rtbuf.h"
-#include "rtbuf_reverb.h"
+#include "../../librtbuf/rtbuf.h"
+#include "../reverb.h"
int rtbuf_reverb_fdn4_start (s_rtbuf *rtb)
{
diff --git a/lib/signal/bandpass2.c b/lib/signal/bandpass2.c
index f77215f..ce2efa1 100644
--- a/lib/signal/bandpass2.c
+++ b/lib/signal/bandpass2.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com>
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -46,10 +46,10 @@ e: q2 w4 - sqrt(2)^3 f q w3 + (2 q2 + 1) 4 f2 w2 - sqrt(2)^7 f3 q w + 16 f4
y: (4 f2 w2 (x4 - 2 x2 + x) - (b y1 + c y2 + d y3 + e y4)) / a;
*/
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_bandpass2_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/delay.c b/lib/signal/delay.c
index fa653de..66d9b18 100644
--- a/lib/signal/delay.c
+++ b/lib/signal/delay.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,10 +16,10 @@
#include <stdio.h>
#include <strings.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_delay_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/equalizer10.c b/lib/signal/equalizer10.c
index da1901e..6c053fa 100644
--- a/lib/signal/equalizer10.c
+++ b/lib/signal/equalizer10.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -51,10 +51,10 @@ fc: -3db
q: 2
*/
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_equalizer10_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/flanger.c b/lib/signal/flanger.c
index 7564529..9fa4470 100644
--- a/lib/signal/flanger.c
+++ b/lib/signal/flanger.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2018,2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
* Copyright 2018 Judy Najnudel <judy.najnudel@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -19,10 +19,10 @@
#include <stdio.h>
#include <string.h>
#include <strings.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_flanger_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/hipass.c b/lib/signal/hipass.c
index b5c64a3..032e0f6 100644
--- a/lib/signal/hipass.c
+++ b/lib/signal/hipass.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,10 +15,10 @@
*/
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_hipass_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/hipass2.c b/lib/signal/hipass2.c
index d74b4a6..2f7902c 100644
--- a/lib/signal/hipass2.c
+++ b/lib/signal/hipass2.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -15,10 +15,10 @@
*/
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_hipass2_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/hipass3.c b/lib/signal/hipass3.c
index a7d5f92..31802a4 100644
--- a/lib/signal/hipass3.c
+++ b/lib/signal/hipass3.c
@@ -1,6 +1,6 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
- * Copyright 2020 Judy Najnudel
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
+ * Copyright 2020 Judy Najnudel <judy.najnudel@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -41,10 +41,10 @@ y: (8 F³ ((x - x3) + 3 (x2 - x1)) - (a y3 + b y2 + c y1)) / d
*/
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_hipass3_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 0.0 },
diff --git a/lib/signal/hipass4.c b/lib/signal/hipass4.c
index 8c319a2..e7dad70 100644
--- a/lib/signal/hipass4.c
+++ b/lib/signal/hipass4.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -46,10 +46,10 @@ y: f4 (16 (x4 + x) - 64 (x3 + x1) + 96 x2 - (e y4 + d y3 + c y2 + b y1)) / a $
*/
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_hipass4_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/hipass5.c b/lib/signal/hipass5.c
index 572e69a..ea368e3 100644
--- a/lib/signal/hipass5.c
+++ b/lib/signal/hipass5.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -58,10 +58,10 @@ y: (f5 (32 (x - x5) + 160 (x4 - x1) + 320 (x2 - x3)) - (b y1 + c y2 + d y3 + e y
*/
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_hipass5_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/lowpass.c b/lib/signal/lowpass.c
index fd0b2c3..da8df64 100644
--- a/lib/signal/lowpass.c
+++ b/lib/signal/lowpass.c
@@ -1,6 +1,6 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
- * Copyright 2020 Judy Najnudel
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
+ * Copyright 2020 Judy Najnudel <judy.najnudel@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -16,10 +16,10 @@
*/
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_lowpass_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/lowpass2.c b/lib/signal/lowpass2.c
index 3f75be8..bc8cdab 100644
--- a/lib/signal/lowpass2.c
+++ b/lib/signal/lowpass2.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -20,10 +20,10 @@ H: 1/B2 $
*/
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_lowpass2_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/lowpass3.c b/lib/signal/lowpass3.c
index 26218d9..f7913ff 100644
--- a/lib/signal/lowpass3.c
+++ b/lib/signal/lowpass3.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
* Copyright 2020 Judy Najnudel
*
* Permission to use, copy, modify, and distribute this software for any
@@ -16,10 +16,10 @@
*/
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_lowpass3_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/lowpass4.c b/lib/signal/lowpass4.c
index fdb4f29..a81d989 100644
--- a/lib/signal/lowpass4.c
+++ b/lib/signal/lowpass4.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -50,10 +50,10 @@ g: 16*F^4 - 16*(a+b)*F^3*w + (16*a*b+8)*F^2*w^2 - 4*(a+b)*F*w^3 + w^4 $
y: (w4*(x4+4*x3+6*x2+4*x1+x)-(c*y4+d*y3+e*y2+f*y1))/g $
*/
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_lowpass4_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/lowpass5.c b/lib/signal/lowpass5.c
index 7ed8a4d..01ce927 100644
--- a/lib/signal/lowpass5.c
+++ b/lib/signal/lowpass5.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -56,10 +56,10 @@ f: w5 + (r5 + 1)(-2)(f w4 - 8 f4 w) + (4 r5 + 12) (f2 w3 - 2 f3 w2) - 32
*/
#include <math.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_lowpass5_in[] =
{{ "signal", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/signal/sawtooth.c b/lib/signal/sawtooth.c
index fcbc944..774f861 100644
--- a/lib/signal/sawtooth.c
+++ b/lib/signal/sawtooth.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2020 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2020-2021 Thomas de Grivel <thoxdg@gmail.com>
* Copyright 2020 Judy Najnudel <judy.najnudel@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -18,10 +18,10 @@
#include <float.h>
#include <math.h>
#include <stdio.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_sawtooth_in[] =
{{ "frequency", RTBUF_SIGNAL_TYPE, 220.0, 20.0, RTBUF_SIGNAL_SAMPLERATE / 2.0, 2.0 },
diff --git a/lib/signal/sinus.c b/lib/signal/sinus.c
index 94dcc24..73b2e28 100644
--- a/lib/signal/sinus.c
+++ b/lib/signal/sinus.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
* Copyright 2018 Judy Najnudel <judy.najnudel@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -18,10 +18,10 @@
#include <float.h>
#include <math.h>
#include <stdio.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_sinus_in[] =
{{ "frequency", RTBUF_SIGNAL_TYPE, 220.0, 20.0, RTBUF_SIGNAL_SAMPLERATE / 2.0, 2.0 },
diff --git a/lib/signal/square.c b/lib/signal/square.c
index 761fef0..24a43b4 100644
--- a/lib/signal/square.c
+++ b/lib/signal/square.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -17,10 +17,10 @@
#include <float.h>
#include <math.h>
#include <stdio.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
s_rtbuf_lib_proc_in rtbuf_signal_square_in[] =
{{ "frequency", RTBUF_SIGNAL_TYPE, 220.0, 20.0, RTBUF_SIGNAL_SAMPLERATE / 2.0, 2.0 },
diff --git a/lib/sndio/input.c b/lib/sndio/input.c
index 28b7a75..91b2d29 100644
--- a/lib/sndio/input.c
+++ b/lib/sndio/input.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -17,12 +17,12 @@
#include <sndio.h>
#include <stdio.h>
#include <strings.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
-#include <rtbuf/sndio.h>
-#include <rtbuf/sndio_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
+#include "../sndio.h"
+#include "../sndio_type.h"
s_rtbuf_lib_proc_out rtbuf_sndio_input_out[] = {
{ "left", RTBUF_SIGNAL_TYPE },
diff --git a/lib/sndio/output.c b/lib/sndio/output.c
index a8016a8..7b301c8 100644
--- a/lib/sndio/output.c
+++ b/lib/sndio/output.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -18,12 +18,12 @@
#include <sndio.h>
#include <stdio.h>
#include <strings.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
-#include <rtbuf/sndio.h>
-#include <rtbuf/sndio_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
+#include "../sndio.h"
+#include "../sndio_type.h"
s_rtbuf_lib_proc_in rtbuf_sndio_output_in[] =
{{ "left", RTBUF_SIGNAL_TYPE, 0.0, -1.0, 1.0, 1.0 },
diff --git a/lib/synth/adsr.c b/lib/synth/adsr.c
index 7f2422a..80f7c3e 100644
--- a/lib/synth/adsr.c
+++ b/lib/synth/adsr.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
* Copyright 2018 Judy Najnudel <judy.najnudel@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
@@ -18,13 +18,13 @@
#include <float.h>
#include <stdio.h>
#include <strings.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
-#include <rtbuf/music.h>
-#include <rtbuf/music_type.h>
-#include <rtbuf/synth.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
+#include "../music.h"
+#include "../music_type.h"
+#include "../synth.h"
s_rtbuf_lib_proc_in rtbuf_synth_adsr_in[] =
{RTBUF_MUSIC_NOTE_IN(),
diff --git a/lib/synth/synth.c b/lib/synth/synth.c
index 5a8c239..23fd17b 100644
--- a/lib/synth/synth.c
+++ b/lib/synth/synth.c
@@ -1,5 +1,5 @@
/*
- * Copyright 2018 Thomas de Grivel <thoxdg@gmail.com> +33614550127
+ * Copyright 2018-2021 Thomas de Grivel <thoxdg@gmail.com>
*
* Permission to use, copy, modify, and distribute this software for any
* purpose with or without fee is hereby granted, provided that the above
@@ -18,14 +18,14 @@
#include <float.h>
#include <stdio.h>
#include <strings.h>
-#include <rtbuf/rtbuf.h>
-#include <rtbuf/lib.h>
-#include <rtbuf/signal.h>
-#include <rtbuf/signal_type.h>
-#include <rtbuf/music.h>
-#include <rtbuf/music_type.h>
-#include <rtbuf/synth.h>
-#include <rtbuf/synth_type.h>
+#include "../../librtbuf/rtbuf.h"
+#include "../../librtbuf/lib.h"
+#include "../signal.h"
+#include "../signal_type.h"
+#include "../music.h"
+#include "../music_type.h"
+#include "../synth.h"
+#include "../synth_type.h"
s_rtbuf_lib_proc_in rtbuf_synth_synth_in[] =
{{ "envelope", RTBUF_SIGNAL_TYPE, 1.0, 0.0, 1.0, 1.0 },
diff --git a/librtbuf/Makefile b/librtbuf/Makefile
new file mode 100644
index 0000000..263738a
--- /dev/null
+++ b/librtbuf/Makefile
@@ -0,0 +1,8 @@
+all: librtbuf.la
+
+clean:
+ rm -rf .libs *.o *.lo *.la
+
+.PHONY: all clean
+
+.include <config.mk>
diff --git a/librtbuf/configure b/librtbuf/configure
index 82be2b8..70df3c8 100755
--- a/librtbuf/configure
+++ b/librtbuf/configure
@@ -33,7 +33,8 @@ echo "LIBDIR = $LIBDIR" >> ${CONFIG_MK}
for SRC in $SOURCES; do
SRC_LO="$(c2lo "$SRC")"
- c_lo_deps $SRC
+ echo >> ${CONFIG_MK}
+ lo_rule "$SRC" >> ${CONFIG_MK}
echo "\t${LIBTOOL} --tag=CC --mode=compile \${CC} \${CPPFLAGS} \${CFLAGS} -c $SRC -o $SRC_LO" >> ${CONFIG_MK}
done