From 3fa0bea577489ca80e91132d4b87210fbc14cef1 Mon Sep 17 00:00:00 2001 From: Holger Wirtz Date: Tue, 21 Mar 2023 09:13:29 +0100 Subject: [PATCH] Fixes for Synth_Dexed third-party library. --- third-party/Synth_Dexed/src/EngineMkI.h | 1 + third-party/Synth_Dexed/src/EngineMsfa.h | 2 ++ third-party/Synth_Dexed/src/EngineOpl.h | 2 ++ third-party/Synth_Dexed/src/fm_core.h | 7 ++++--- 4 files changed, 9 insertions(+), 3 deletions(-) diff --git a/third-party/Synth_Dexed/src/EngineMkI.h b/third-party/Synth_Dexed/src/EngineMkI.h index a615841..b0762f5 100644 --- a/third-party/Synth_Dexed/src/EngineMkI.h +++ b/third-party/Synth_Dexed/src/EngineMkI.h @@ -26,6 +26,7 @@ class EngineMkI : public FmCore { public: EngineMkI(); + ~EngineMkI() {}; void render(int32_t *output, FmOpParams *params, int32_t algorithm, int32_t *fb_buf, int32_t feedback_shift); void compute(int32_t *output, const int32_t *input, int32_t phase0, int32_t freq, int32_t gain1, int32_t gain2, bool add); diff --git a/third-party/Synth_Dexed/src/EngineMsfa.h b/third-party/Synth_Dexed/src/EngineMsfa.h index 0c7a6e0..d12fa94 100644 --- a/third-party/Synth_Dexed/src/EngineMsfa.h +++ b/third-party/Synth_Dexed/src/EngineMsfa.h @@ -23,5 +23,7 @@ class EngineMsfa : public FmCore { public: + EngineMsfa() {}; + ~EngineMsfa() {}; void render(int32_t *output, FmOpParams *params, int32_t algorithm, int32_t *fb_buf, int32_t feedback_gain); }; diff --git a/third-party/Synth_Dexed/src/EngineOpl.h b/third-party/Synth_Dexed/src/EngineOpl.h index 797681b..fe7f20b 100644 --- a/third-party/Synth_Dexed/src/EngineOpl.h +++ b/third-party/Synth_Dexed/src/EngineOpl.h @@ -28,6 +28,8 @@ class EngineOpl : public FmCore { public: + EngineOpl() {}; + ~EngineOpl() {}; void render(int32_t *output, FmOpParams *params, int32_t algorithm, int32_t *fb_buf, int32_t feedback_shift); void compute(int32_t *output, const int32_t *input, int32_t phase0, int32_t freq, int32_t gain1, int32_t gain2, bool add); void compute_pure(int32_t *output, int32_t phase0, int32_t freq, int32_t gain1, int32_t gain2, bool add); diff --git a/third-party/Synth_Dexed/src/fm_core.h b/third-party/Synth_Dexed/src/fm_core.h index 353dbfc..8d23de1 100644 --- a/third-party/Synth_Dexed/src/fm_core.h +++ b/third-party/Synth_Dexed/src/fm_core.h @@ -46,10 +46,11 @@ class FmAlgorithm { class FmCore { public: - //virtual ~FmCore() {}; + FmCore() {}; + virtual ~FmCore() {}; static void dump(); - uint8_t get_carrier_operators(uint8_t algorithm); - virtual void render(int32_t *output, FmOpParams *params, int32_t algorithm, int32_t *fb_buf, int32_t feedback_gain); + static uint8_t get_carrier_operators(uint8_t algorithm); + virtual void render(int32_t *output, FmOpParams *params, int32_t algorithm, int32_t *fb_buf, int32_t feedback_gain) = 0; protected: AlignedBufbuf_[2]; const static FmAlgorithm algorithms[32];