shithub: pt2-clone

Download patch

ref: 4b8681a19cf2b9e77e819be02b4d18c14346e567
parent: 653e85a92f58a1aab94793e209e12fde6a8d734b
author: Olav Sørensen <olav.sorensen@live.no>
date: Wed Oct 12 05:52:29 EDT 2022

Fix compile issue (issue #30)

--- a/src/pt2_amigafilters.c
+++ b/src/pt2_amigafilters.c
@@ -25,12 +25,12 @@
 static rcFilter_t filterLoA500, filterHiA500, filterLoA1200, filterHiA1200;
 static ledFilter_t filterLED;
 
+void (*processAmigaFilters)(double *, double *, int32_t); // globalized
+
 static void processFiltersA1200_NoLED(double *dBufferL, double *dBufferR, int32_t numSamples);
 static void processFiltersA1200_LED(double *dBufferL, double *dBufferR, int32_t numSamples);
 static void processFiltersA500_NoLED(double *dBufferL, double *dBufferR, int32_t numSamples);
 static void processFiltersA500_LED(double *dBufferL, double *dBufferR, int32_t numSamples);
-
-void (*processAmigaFilters)(double *, double *, int32_t);
 
 // --------------------------------------------------------
 // Crude LED filter implementation
--- a/src/pt2_amigafilters.h
+++ b/src/pt2_amigafilters.h
@@ -9,4 +9,4 @@
 void setLEDFilter(bool state);
 void toggleAmigaFilterModel(void);
 
-void (*processAmigaFilters)(double *, double *, int32_t);
+extern void (*processAmigaFilters)(double *, double *, int32_t);