Browse Source

Boolean stuff

tags/1.0.1
xenakios 7 years ago
parent
commit
acbbe693bd
2 changed files with 6 additions and 1 deletions
  1. +5
    -0
      Source/PS_Source/globals.h
  2. +1
    -1
      Source/PluginProcessor.cpp

+ 5
- 0
Source/PS_Source/globals.h View File

@@ -246,3 +246,8 @@ inline void toggleBool(bool& b)
{
b = !b;
}

inline void toggleBool(AudioParameterBool* b)
{
*b = !(*b);
}

+ 1
- 1
Source/PluginProcessor.cpp View File

@@ -615,7 +615,7 @@ void PaulstretchpluginAudioProcessor::setStateInformation (const void* data, int

void PaulstretchpluginAudioProcessor::setDirty()
{
*getBoolParameter(cpi_markdirty) = !(*getBoolParameter(cpi_markdirty));
toggleBool(getBoolParameter(cpi_markdirty));
}

void PaulstretchpluginAudioProcessor::setRecordingEnabled(bool b)


Loading…
Cancel
Save