1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-04 03:40:07 +00:00

Added an assertion to try to catch people who have mixed the old and new systems of adding parameters to AudioProcessor.

This commit is contained in:
jules 2015-08-17 19:08:08 +01:00
parent 07afa76759
commit cfbab7b011

View file

@ -310,6 +310,10 @@ void AudioProcessor::addParameter (AudioProcessorParameter* p)
p->processor = this;
p->parameterIndex = managedParameters.size();
managedParameters.add (p);
// if you're using parameter objects, then you must not override the
// deprecated getNumParameters() method!
jassert (getNumParameters() == AudioProcessor::getNumParameters());
}
void AudioProcessor::suspendProcessing (const bool shouldBeSuspended)