From 4b8681a19cf2b9e77e819be02b4d18c14346e567 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Olav=20S=C3=B8rensen?= Date: Wed, 12 Oct 2022 09:52:29 +0200 Subject: [PATCH] Fix compile issue (issue #30) --- src/pt2_amigafilters.c | 4 ++-- src/pt2_amigafilters.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/pt2_amigafilters.c b/src/pt2_amigafilters.c index d5cdb9b..a17fb39 100644 --- a/src/pt2_amigafilters.c +++ b/src/pt2_amigafilters.c @@ -25,13 +25,13 @@ static bool ledFilterEnabled, useA1200LowPassFilter; 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 // -------------------------------------------------------- diff --git a/src/pt2_amigafilters.h b/src/pt2_amigafilters.h index 17c1610..733b2ea 100644 --- a/src/pt2_amigafilters.h +++ b/src/pt2_amigafilters.h @@ -9,4 +9,4 @@ void setAmigaFilterModel(uint8_t amigaModel); void setLEDFilter(bool state); void toggleAmigaFilterModel(void); -void (*processAmigaFilters)(double *, double *, int32_t); +extern void (*processAmigaFilters)(double *, double *, int32_t);