commit 13ef4e90674649402bb171d9114eaf19e853642b
parent a66c635a43fa428c35db440860c909afe3b271d7
Author: falkTX <falktx@gmail.com>
Date: Tue, 12 May 2015 23:07:50 +0200
Add Parameter constructor using custom values; Fix typo
Diffstat:
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git 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
@@ -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;