commit 6aeef9a7991cc34b6dab40d826a097ee34710d20 parent 1664f0afadf7924d60273f98c5b3c400278b2d49 Author: dsp56300 <dsp56300@users.noreply.github.com> Date: Tue, 17 May 2022 00:09:10 +0200 helper function to check if a parameter is non-part-sensitive Diffstat:
M | source/jucePluginLib/parameterdescription.cpp | | | 4 | ++++ |
M | source/jucePluginLib/parameterdescription.h | | | 2 | ++ |
2 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/source/jucePluginLib/parameterdescription.cpp b/source/jucePluginLib/parameterdescription.cpp @@ -2,4 +2,8 @@ namespace pluginLib { + bool Description::isNonPartSensitive() const + { + return classFlags & static_cast<int>(pluginLib::ParameterClass::Global) || (classFlags & static_cast<int>(pluginLib::ParameterClass::NonPartSensitive)); + } } diff --git a/source/jucePluginLib/parameterdescription.h b/source/jucePluginLib/parameterdescription.h @@ -47,5 +47,7 @@ namespace pluginLib bool isBool; bool isBipolar; std::string toText; + + bool isNonPartSensitive() const; }; }