Fixes for Synth_Dexed third-party library.

dev
Holger Wirtz 2 years ago
parent 29024b356e
commit 3fa0bea577
  1. 1
      third-party/Synth_Dexed/src/EngineMkI.h
  2. 2
      third-party/Synth_Dexed/src/EngineMsfa.h
  3. 2
      third-party/Synth_Dexed/src/EngineOpl.h
  4. 7
      third-party/Synth_Dexed/src/fm_core.h

@ -26,6 +26,7 @@
class EngineMkI : public FmCore { class EngineMkI : public FmCore {
public: public:
EngineMkI(); EngineMkI();
~EngineMkI() {};
void render(int32_t *output, FmOpParams *params, int32_t algorithm, int32_t *fb_buf, int32_t feedback_shift); 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(int32_t *output, const int32_t *input, int32_t phase0, int32_t freq, int32_t gain1, int32_t gain2, bool add);

@ -23,5 +23,7 @@
class EngineMsfa : public FmCore { class EngineMsfa : public FmCore {
public: public:
EngineMsfa() {};
~EngineMsfa() {};
void render(int32_t *output, FmOpParams *params, int32_t algorithm, int32_t *fb_buf, int32_t feedback_gain); void render(int32_t *output, FmOpParams *params, int32_t algorithm, int32_t *fb_buf, int32_t feedback_gain);
}; };

@ -28,6 +28,8 @@
class EngineOpl : public FmCore { class EngineOpl : public FmCore {
public: public:
EngineOpl() {};
~EngineOpl() {};
void render(int32_t *output, FmOpParams *params, int32_t algorithm, int32_t *fb_buf, int32_t feedback_shift); 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(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); void compute_pure(int32_t *output, int32_t phase0, int32_t freq, int32_t gain1, int32_t gain2, bool add);

@ -46,10 +46,11 @@ class FmAlgorithm {
class FmCore { class FmCore {
public: public:
//virtual ~FmCore() {}; FmCore() {};
virtual ~FmCore() {};
static void dump(); static void dump();
uint8_t get_carrier_operators(uint8_t algorithm); 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); virtual void render(int32_t *output, FmOpParams *params, int32_t algorithm, int32_t *fb_buf, int32_t feedback_gain) = 0;
protected: protected:
AlignedBuf<int32_t, _N_>buf_[2]; AlignedBuf<int32_t, _N_>buf_[2];
const static FmAlgorithm algorithms[32]; const static FmAlgorithm algorithms[32];

Loading…
Cancel
Save