Skip to content

Commit ed767fe

Browse files
committed
Fix invada-lv2 build with new compilers
Signed-off-by: falkTX <falktx@falktx.com>
1 parent 51db87f commit ed767fe

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
diff --git a/plugin/library/common.c b/plugin/library/common.c
2+
index ca00815..310ee9e 100644
3+
--- a/plugin/library/common.c
4+
+++ b/plugin/library/common.c
5+
@@ -176,7 +176,11 @@ calculateSingleIReverbER(struct ERunit * er, float Width, float Length, float He
6+
ERRelGainR = (ERRelGain * (1 + (ERAngle/PI_ON_2)))/2;
7+
8+
er->Active=1;
9+
+#ifdef _WIN32
10+
+ er->rand=(double)rand()/RAND_MAX;
11+
+#else
12+
er->rand=drand48();
13+
+#endif
14+
er->DelayActual=ERRelDelayActual;
15+
er->Reflections=Reflections;
16+
er->AbsGain=fabs(ERRelGain);
17+
@@ -227,7 +231,11 @@ calculateIReverbER(struct ERunit *erarray, int erMax,
18+
MaxGain=0.000000000001; /* this is used to scale up the reflections so that the loudest one has a gain of 1 (0db) */
19+
20+
/* seed the random sequence*/
21+
+#ifdef _WIN32
22+
+ srand(31415);
23+
+#else
24+
srand48(314159265);
25+
+#endif
26+
27+
// reflections from the left wall
28+
// 0: S->Left->D
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/plugin/Makefile b/plugin/Makefile
2+
index d13378f..92c6221 100644
3+
--- a/plugin/Makefile
4+
+++ b/plugin/Makefile
5+
@@ -22,7 +22,7 @@
6+
CC ?= gcc
7+
LD ?= gcc
8+
CFLAGS += -I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC
9+
-LDFLAGS += -shared -Llibrary -lm -linv_common -fPIC -DPIC
10+
+LDFLAGS += -shared -Llibrary -linv_common -lm -fPIC -DPIC
11+
12+
PLUGINS = inv_compressor.so \
13+
inv_delay.so \
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
diff --git a/plugin/Makefile b/plugin/Makefile
2+
index d13378f..92c6221 100644
3+
--- a/plugin/Makefile
4+
+++ b/plugin/Makefile
5+
@@ -22,7 +22,7 @@
6+
CC ?= gcc
7+
LD ?= gcc
8+
CFLAGS += -I. -O3 -Wall -fomit-frame-pointer -fstrength-reduce -funroll-loops -ffast-math -c -fPIC -DPIC
9+
-LDFLAGS += -shared -Llibrary -lm -linv_common -fPIC -DPIC
10+
+LDFLAGS += -shared -Llibrary -linv_common -lm -fPIC -DPIC
11+
12+
PLUGINS = inv_compressor.so \
13+
inv_delay.so \

0 commit comments

Comments
 (0)