From 3bdfeb54fff05674946f52b49f4f6601c3306acd Mon Sep 17 00:00:00 2001 From: f4exb Date: Tue, 23 Jul 2024 19:39:09 +0200 Subject: [PATCH] WDSP: added missing exports for Mac and Windows --- wdsp/RXA.cpp | 4 ++-- wdsp/anb.cpp | 2 +- wdsp/anb.hpp | 6 ++++-- wdsp/nob.cpp | 2 +- wdsp/nob.hpp | 6 ++++-- 5 files changed, 12 insertions(+), 8 deletions(-) diff --git a/wdsp/RXA.cpp b/wdsp/RXA.cpp index 206bc44f7..a7a848b25 100644 --- a/wdsp/RXA.cpp +++ b/wdsp/RXA.cpp @@ -647,8 +647,8 @@ void RXA::flush_rxa (RXA *rxa) void RXA::xrxa (RXA *rxa) { - rxa->anb->x(); - rxa->nob->x(); + rxa->anb->execute(); + rxa->nob->execute(); SHIFT::xshift (rxa->shift); RESAMPLE::xresample (rxa->rsmpin); GEN::xgen (rxa->gen0); diff --git a/wdsp/anb.cpp b/wdsp/anb.cpp index 1be6f8973..9b07c46fd 100644 --- a/wdsp/anb.cpp +++ b/wdsp/anb.cpp @@ -98,7 +98,7 @@ ANB::~ANB() delete[] wave; } -void ANB::x() +void ANB::execute() { double scale; double mag; diff --git a/wdsp/anb.hpp b/wdsp/anb.hpp index a0859a5ed..7e9de4669 100644 --- a/wdsp/anb.hpp +++ b/wdsp/anb.hpp @@ -28,11 +28,13 @@ warren@wpratt.com #ifndef wdsp_anb_h #define wdsp_anb_h +#include "export.h" + namespace WDSP { class RXA; -class ANB +class WDSP_API ANB { public: int run; @@ -81,7 +83,7 @@ public: ~ANB(); void flush(); - void x(); + void execute(); void setBuffers(float* in, float* out); void setSize(int size); // Common interface diff --git a/wdsp/nob.cpp b/wdsp/nob.cpp index f11f90392..cd5079f33 100644 --- a/wdsp/nob.cpp +++ b/wdsp/nob.cpp @@ -159,7 +159,7 @@ void NOB::flush() std::fill(ffbuff, ffbuff + filterlen * 2, 0); } -void NOB::x() +void NOB::execute() { double scale; double mag; diff --git a/wdsp/nob.hpp b/wdsp/nob.hpp index 1a1c4f673..370619994 100644 --- a/wdsp/nob.hpp +++ b/wdsp/nob.hpp @@ -28,11 +28,13 @@ warren@wpratt.com #ifndef wdsp_nob_h #define wdsp_nob_h +#include "export.h" + namespace WDSP { class RXA; -class NOB +class WDSP_API NOB { public: int run; @@ -100,7 +102,7 @@ public: ~NOB(); //////////// legacy interface - remove void flush(); - void x(); + void execute(); void setBuffers(float* in, float* out); void setSize(int size); // Common interface