1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

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

This commit is contained in:
jules 2014-01-29 17:31:04 +00:00
parent 7fecba7265
commit bf37e92e30

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);