mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
AU: Made the detection of parameters more robust when hosting AU plug-ins
This commit is contained in:
parent
fec3b7d59e
commit
98244f1ed1
1 changed files with 5 additions and 0 deletions
|
|
@ -969,6 +969,9 @@ public:
|
|||
|
||||
if (prepared)
|
||||
{
|
||||
if (! haveParameterList)
|
||||
refreshParameterList();
|
||||
|
||||
if (! syncBusLayouts (getBusesLayout(), true, ignore))
|
||||
{
|
||||
prepared = false;
|
||||
|
|
@ -1357,6 +1360,7 @@ public:
|
|||
UInt32 paramListSize = 0;
|
||||
AudioUnitGetPropertyInfo (audioUnit, kAudioUnitProperty_ParameterList, kAudioUnitScope_Global,
|
||||
0, ¶mListSize, nullptr);
|
||||
haveParameterList = paramListSize >= 0;
|
||||
|
||||
if (paramListSize > 0)
|
||||
{
|
||||
|
|
@ -1657,6 +1661,7 @@ private:
|
|||
MidiBuffer incomingMidi;
|
||||
std::unique_ptr<AUBypassParameter> bypassParam;
|
||||
bool lastProcessBlockCallWasBypass = false, auSupportsBypass = false;
|
||||
bool haveParameterList = false;
|
||||
|
||||
void createPluginCallbacks()
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue