mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-11 23:54:18 +00:00
AU: Don't set kAudioUnitProperty_AudioChannelLayout property on plug-ins that don't support it
This commit is contained in:
parent
e86b1a8818
commit
2b542dc701
1 changed files with 10 additions and 10 deletions
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue