Boolean stuff

This commit is contained in:
xenakios 2018-02-13 19:41:52 +02:00
parent 3a36e35903
commit acbbe693bd
2 changed files with 6 additions and 1 deletions

View File

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

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)