1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-06 04:00:08 +00:00

Minor AU hosting tweak.

This commit is contained in:
jules 2014-01-29 18:24:21 +00:00
parent bf37e92e30
commit 5ab53e15a0

View file

@ -801,8 +801,6 @@ public:
void setCurrentProgramStateInformation (const void* data, int sizeInBytes) override
{
initialiseAudioUnit();
CFReadStreamRef stream = CFReadStreamCreateWithBytesNoCopy (kCFAllocatorDefault, (const UInt8*) data,
sizeInBytes, kCFAllocatorNull);
CFReadStreamOpen (stream);
@ -814,6 +812,8 @@ public:
if (propertyList != 0)
{
initialiseAudioUnit();
AudioUnitSetProperty (audioUnit, kAudioUnitProperty_ClassInfo, kAudioUnitScope_Global,
0, &propertyList, sizeof (propertyList));