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:
parent
bf37e92e30
commit
5ab53e15a0
1 changed files with 2 additions and 2 deletions
|
|
@ -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));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue