Browse Source

Add Parameter constructor using custom values; Fix typo

pull/6/head
falkTX 10 years ago
parent
commit
13ef4e9067
2 changed files with 11 additions and 1 deletions
  1. +10
    -0
      distrho/DistrhoPlugin.hpp
  2. +1
    -1
      distrho/DistrhoUtils.hpp

+ 10
- 0
distrho/DistrhoPlugin.hpp View File

@@ -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) {}
};

/**


+ 1
- 1
distrho/DistrhoUtils.hpp View File

@@ -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;


Loading…
Cancel
Save