Browse Source

AU: fix for superclass parameter loading problem

tags/2021-05-28
jules 12 years ago
parent
commit
03f568fab2
1 changed files with 10 additions and 4 deletions
  1. +10
    -4
      modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm

+ 10
- 4
modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm View File

@@ -312,10 +312,16 @@ public:
ComponentResult RestoreState (CFPropertyListRef inData)
{
ComponentResult err = JuceAUBaseClass::RestoreState (inData);
if (err != noErr)
return err;
{
// Remove the data entry from the state to prevent the superclass loading the parameters
CFMutableDictionaryRef copyWithoutData = CFDictionaryCreateMutableCopy (nullptr, 0, (CFDictionaryRef) inData);
CFDictionaryRemoveValue (copyWithoutData, CFSTR (kAUPresetDataKey));
ComponentResult err = JuceAUBaseClass::RestoreState (copyWithoutData);
CFRelease (copyWithoutData);
if (err != noErr)
return err;
}
if (juceFilter != nullptr)
{


Loading…
Cancel
Save