aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--audio/stegosaurus-lv2/files/patch-stegosaurus__synth.c11
-rw-r--r--audio/stegosaurus-lv2/files/patch-stegosaurus__synth.h11
2 files changed, 22 insertions, 0 deletions
diff --git a/audio/stegosaurus-lv2/files/patch-stegosaurus__synth.c b/audio/stegosaurus-lv2/files/patch-stegosaurus__synth.c
new file mode 100644
index 000000000000..7d99a6ca9f8d
--- /dev/null
+++ b/audio/stegosaurus-lv2/files/patch-stegosaurus__synth.c
@@ -0,0 +1,11 @@
+--- stegosaurus_synth.c.orig 2020-09-19 18:50:38 UTC
++++ stegosaurus_synth.c
+@@ -2,6 +2,8 @@
+ #include "stegosaurus_synth.h"
+ #include "noise.h"
+
++stegosaurus* stegosaurus_self = 0;
++
+ voice* voices[4];
+ int next_voice = 0;
+ int keys[128];
diff --git a/audio/stegosaurus-lv2/files/patch-stegosaurus__synth.h b/audio/stegosaurus-lv2/files/patch-stegosaurus__synth.h
new file mode 100644
index 000000000000..074fdd7321d1
--- /dev/null
+++ b/audio/stegosaurus-lv2/files/patch-stegosaurus__synth.h
@@ -0,0 +1,11 @@
+--- stegosaurus_synth.h.orig 2020-09-19 18:50:03 UTC
++++ stegosaurus_synth.h
+@@ -26,7 +26,7 @@ void stegosaurus_synth_set_osc_waves(int, int, int);
+ #define ENV_STATE_KILL 7
+
+
+-stegosaurus* stegosaurus_self;
++extern stegosaurus* stegosaurus_self;
+
+
+ typedef struct