1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

AudioUnits: exposed a method to force a reload of the parameter list.

This commit is contained in:
jules 2012-09-28 11:09:32 +01:00
parent bc259dc955
commit 4197f76ac0
2 changed files with 9 additions and 5 deletions

View file

@ -326,7 +326,7 @@ public:
void initialise()
{
refreshParameterListFromPlugin();
refreshParameterList();
updateNumChannels();
setPluginCallbacks();
setPlayConfigDetails (numInputBusChannels * numInputBusses,
@ -772,7 +772,7 @@ public:
}
}
void refreshParameterListFromPlugin()
void refreshParameterList()
{
parameterIds.clear();

View file

@ -51,17 +51,21 @@ public:
virtual ~AudioPluginInstance() {}
//==============================================================================
/** Fills-in the appropriate parts of this plugin description object.
*/
/** Fills-in the appropriate parts of this plugin description object. */
virtual void fillInPluginDescription (PluginDescription& description) const = 0;
/** Returns a pointer to some kind of platform-specific data about the plugin.
E.g. For a VST, this value can be cast to an AEffect*. For an AudioUnit, it can be
cast to an AudioUnit handle.
*/
virtual void* getPlatformSpecificData() { return nullptr; }
/** For some formats (currently AudioUnit), this forces a reload of the list of
available parameters.
*/
virtual void refreshParameterList() {}
protected:
//==============================================================================
AudioPluginInstance() {}