diff --git a/src/effect_base.cpp b/src/effect_base.cpp index 0cb69d3..d034f88 100644 --- a/src/effect_base.cpp +++ b/src/effect_base.cpp @@ -41,7 +41,7 @@ void AudioEffect::setParameters(std::vector params) std::vector AudioEffect::getParameters() { - size_t len = getParametersSize(); + size_t len = this->getParametersSize(); std::vector params; for (size_t i = 0; i < len; i++) { diff --git a/src/effect_bigmuff.h b/src/effect_bigmuff.h index 747c8e1..6ebae9d 100644 --- a/src/effect_bigmuff.h +++ b/src/effect_bigmuff.h @@ -35,7 +35,7 @@ public: protected: virtual size_t getParametersSize() { - return sizeof(AudioEffectBigMuff::Param); + return AudioEffectBigMuff::Param::UNKNOWN; } virtual void doProcess(const float32_t* inblockL, const float32_t* inblockR, float32_t* outblockL, float32_t* outblockR, uint16_t len); private: diff --git a/src/effect_chorus.h b/src/effect_chorus.h index e29b9d8..c03a6ab 100644 --- a/src/effect_chorus.h +++ b/src/effect_chorus.h @@ -45,7 +45,7 @@ public: protected: virtual size_t getParametersSize() { - return sizeof(AudioEffectChorus::Param); + return AudioEffectChorus::Param::UNKNOWN; } virtual void doProcess(const float32_t* inblockL, const float32_t* inblockR, float32_t* outblockL, float32_t* outblockR, uint16_t len); diff --git a/src/effect_delay.h b/src/effect_delay.h index 63d3e5c..15b81b5 100644 --- a/src/effect_delay.h +++ b/src/effect_delay.h @@ -39,7 +39,7 @@ public: protected: virtual size_t getParametersSize() { - return sizeof(AudioEffectDelay::Param); + return AudioEffectDelay::Param::UNKNOWN; } virtual void doProcess(const float32_t* inblockL, const float32_t* inblockR, float32_t* outblockL, float32_t* outblockR, uint16_t len); private: diff --git a/src/effect_ds1.h b/src/effect_ds1.h index 3b38e86..173c767 100644 --- a/src/effect_ds1.h +++ b/src/effect_ds1.h @@ -35,7 +35,7 @@ public: protected: virtual size_t getParametersSize() { - return sizeof(AudioEffectDS1::Param); + return AudioEffectDS1::Param::UNKNOWN; } virtual void doProcess(const float32_t* inblockL, const float32_t* inblockR, float32_t* outblockL, float32_t* outblockR, uint16_t len); private: diff --git a/src/effect_lpf.h b/src/effect_lpf.h index ee6f1ec..984afd3 100644 --- a/src/effect_lpf.h +++ b/src/effect_lpf.h @@ -100,7 +100,7 @@ public: protected: virtual size_t getParametersSize() { - return sizeof(AudioEffectLPF::Param); + return AudioEffectLPF::Param::UNKNOWN; } virtual void doProcess(const float32_t* inblockL, const float32_t* inblockR, float32_t* outblockL, float32_t* outblockR, uint16_t len) diff --git a/src/effect_platervbstereo.h b/src/effect_platervbstereo.h index 489f9ad..feaf599 100644 --- a/src/effect_platervbstereo.h +++ b/src/effect_platervbstereo.h @@ -136,7 +136,7 @@ public: protected: virtual size_t getParametersSize() { - return sizeof(AudioEffectPlateReverb::Param); + return AudioEffectPlateReverb::Param::UNKNOWN; } virtual void doProcess(const float32_t* inblockL, const float32_t* inblockR, float32_t* outblockL, float32_t* outblockR, uint16_t len); diff --git a/src/effect_talreverb3.h b/src/effect_talreverb3.h index 1c81f2b..cd8eb11 100644 --- a/src/effect_talreverb3.h +++ b/src/effect_talreverb3.h @@ -44,7 +44,7 @@ public: protected: virtual size_t getParametersSize() { - return sizeof(AudioEffectTalReverb3::Param); + return AudioEffectTalReverb3::Param::UNKNOWN; } virtual void doProcess(const float32_t* inblockL, const float32_t* inblockR, float32_t* outblockL, float32_t* outblockR, uint16_t len); private: