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:
parent
07afa76759
commit
cfbab7b011
1 changed files with 4 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue