1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00
This commit is contained in:
jules 2008-07-31 11:32:24 +00:00
parent d4e2bf2232
commit 6574889f13
3 changed files with 20 additions and 0 deletions

View file

@ -289,6 +289,9 @@ public:
if (name.isEmpty() || ! juceFilter->isParameterAutomatable (index))
outParameterInfo.flags |= kAudioUnitParameterFlag_NonRealTime;
if (juceFilter->isMetaParameter (index))
outParameterInfo.flags |= kAudioUnitParameterFlag_IsGlobalMeta;
AUBase::FillInParameterName (outParameterInfo,
PlatformUtilities::juceStringToCFString (name),
false);
@ -536,6 +539,9 @@ public:
if (! prepared)
prepareToPlay();
if (juceFilter != 0)
juceFilter->reset();
return JuceAUBaseClass::Reset (inScope, inElement);
}

View file

@ -192,6 +192,11 @@ bool AudioProcessor::isParameterAutomatable (int /*index*/) const
return true;
}
bool AudioProcessor::isMetaParameter (int parameterIndex) const
{
return false;
}
void AudioProcessor::suspendProcessing (const bool shouldBeSuspended)
{
const ScopedLock sl (callbackLock);

View file

@ -403,6 +403,15 @@ public:
*/
virtual bool isParameterAutomatable (int parameterIndex) const;
/** Should return true if this parameter is a "meta" parameter.
A meta-parameter is a parameter that changes other params. It is used
by some hosts (e.g. AudioUnit hosts).
By default this returns false.
*/
virtual bool isMetaParameter (int parameterIndex) const;
/** Sends a signal to the host to tell it that the user is about to start changing this
parameter.