diff --git a/distrho/DistrhoPlugin.hpp b/distrho/DistrhoPlugin.hpp index 080a4832..0ee98932 100644 --- a/distrho/DistrhoPlugin.hpp +++ b/distrho/DistrhoPlugin.hpp @@ -298,6 +298,16 @@ struct Parameter { symbol(), unit(), ranges() {} + + /** + Constructor using custom values. + */ + Parameter(uint32_t h, const char* n, const char* s, const char* u, float def, float min, float max) noexcept + : hints(h), + name(n), + symbol(s), + unit(u), + ranges(def, min, max) {} }; /** diff --git a/distrho/DistrhoUtils.hpp b/distrho/DistrhoUtils.hpp index 39095a7e..874ec41e 100644 --- a/distrho/DistrhoUtils.hpp +++ b/distrho/DistrhoUtils.hpp @@ -222,7 +222,7 @@ uint32_t d_nextPowerOf2(uint32_t size) noexcept // ----------------------------------------------------------------------- #ifndef DONT_SET_USING_DISTRHO_NAMESPACE - // If your code uses a lot of DGL classes, then this will obviously save you + // If your code uses a lot of DISTRHO classes, then this will obviously save you // a lot of typing, but can be disabled by setting DONT_SET_USING_DISTRHO_NAMESPACE. namespace DISTRHO_NAMESPACE {} using namespace DISTRHO_NAMESPACE;