Browse Source

Fix for hosting certain AU plugins that didn't like to have their state restored before they get initialised.

tags/2021-05-28
jules 12 years ago
parent
commit
bf37e92e30
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm

+ 2
- 0
modules/juce_audio_processors/format_types/juce_AudioUnitPluginFormat.mm View File

@@ -801,6 +801,8 @@ public:
void setCurrentProgramStateInformation (const void* data, int sizeInBytes) override
{
initialiseAudioUnit();
CFReadStreamRef stream = CFReadStreamCreateWithBytesNoCopy (kCFAllocatorDefault, (const UInt8*) data,
sizeInBytes, kCFAllocatorNull);
CFReadStreamOpen (stream);


Loading…
Cancel
Save