|
|
|
@@ -57,9 +57,11 @@ AudioProcessor::~AudioProcessor() |
|
|
|
// that it refers to is deleted..
|
|
|
|
jassert (activeEditor == 0);
|
|
|
|
|
|
|
|
#ifdef JUCE_DEBUG
|
|
|
|
// This will fail if you've called beginParameterChangeGesture() for one
|
|
|
|
// or more parameters without having made a corresponding call to endParameterChangeGesture...
|
|
|
|
jassert (changingParams.countNumberOfSetBits() == 0);
|
|
|
|
#endif
|
|
|
|
}
|
|
|
|
|
|
|
|
void AudioProcessor::setPlayHead (AudioPlayHead* const newPlayHead) throw()
|
|
|
|
@@ -125,9 +127,11 @@ void AudioProcessor::beginParameterChangeGesture (int parameterIndex) |
|
|
|
{
|
|
|
|
jassert (parameterIndex >= 0 && parameterIndex < getNumParameters());
|
|
|
|
|
|
|
|
#ifdef JUCE_DEBUG
|
|
|
|
// This means you've called beginParameterChangeGesture twice in succession without a matching
|
|
|
|
// call to endParameterChangeGesture. That might be fine in most hosts, but better to avoid doing it.
|
|
|
|
jassert (! changingParams [parameterIndex]);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
for (int i = listeners.size(); --i >= 0;)
|
|
|
|
{
|
|
|
|
@@ -144,10 +148,12 @@ void AudioProcessor::endParameterChangeGesture (int parameterIndex) |
|
|
|
{
|
|
|
|
jassert (parameterIndex >= 0 && parameterIndex < getNumParameters());
|
|
|
|
|
|
|
|
#ifdef JUCE_DEBUG
|
|
|
|
// This means you've called endParameterChangeGesture without having previously called
|
|
|
|
// endParameterChangeGesture. That might be fine in most hosts, but better to keep the
|
|
|
|
// calls matched correctly.
|
|
|
|
jassert (changingParams [parameterIndex]);
|
|
|
|
#endif
|
|
|
|
|
|
|
|
for (int i = listeners.size(); --i >= 0;)
|
|
|
|
{
|
|
|
|
|