|
|
|
@@ -781,19 +781,19 @@ public: |
|
|
|
|
|
|
|
// try to convert the layout into a tag
|
|
|
|
actualTag = CoreAudioLayouts::toCoreAudio (CoreAudioLayouts::fromCoreAudio (layout));
|
|
|
|
}
|
|
|
|
|
|
|
|
if (actualTag != requestedTag)
|
|
|
|
{
|
|
|
|
zerostruct (layout);
|
|
|
|
layout.mChannelLayoutTag = requestedTag;
|
|
|
|
if (actualTag != requestedTag)
|
|
|
|
{
|
|
|
|
zerostruct (layout);
|
|
|
|
layout.mChannelLayoutTag = requestedTag;
|
|
|
|
|
|
|
|
err = AudioUnitSetProperty (audioUnit, kAudioUnitProperty_AudioChannelLayout, scope, static_cast<UInt32> (i), &layout, minDataSize);
|
|
|
|
err = AudioUnitSetProperty (audioUnit, kAudioUnitProperty_AudioChannelLayout, scope, static_cast<UInt32> (i), &layout, minDataSize);
|
|
|
|
|
|
|
|
// only bail out if the plug-in claims to support layouts
|
|
|
|
// See AudioUnit headers on kAudioUnitProperty_AudioChannelLayout
|
|
|
|
if (err != noErr && supportsLayouts && isInitialized)
|
|
|
|
return false;
|
|
|
|
// only bail out if the plug-in claims to support layouts
|
|
|
|
// See AudioUnit headers on kAudioUnitProperty_AudioChannelLayout
|
|
|
|
if (err != noErr && supportsLayouts && isInitialized)
|
|
|
|
return false;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|