Skip to content

Commit

Permalink
AUv2: Don't return zero channels when an invalid bus channel count is…
Browse files Browse the repository at this point in the history
… requested
  • Loading branch information
olilarkin committed Apr 4, 2022
1 parent f4fcf4b commit 5e44013
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions IPlug/AUv2/IPlugAU.cpp
Expand Up @@ -1203,6 +1203,10 @@ OSStatus IPlugAU::SetProperty(AudioUnitPropertyID propID, AudioUnitScope scope,
SetSampleRate(pASBD->mSampleRate);
}
}
else
{
pBus->mNHostChannels = pBus->mNPlugChannels;
}
AssessInputConnections();
return (connectionOK ? noErr : (int) kAudioUnitErr_InvalidProperty); // casting to int avoids gcc error
}
Expand Down

0 comments on commit 5e44013

Please sign in to comment.