Browse Source

A minor code tidy

tags/2021-05-28
Tom Poole 6 years ago
parent
commit
016b04c64f
1 changed files with 3 additions and 7 deletions
  1. +3
    -7
      modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm

+ 3
- 7
modules/juce_audio_plugin_client/AU/juce_AU_Wrapper.mm View File

@@ -934,12 +934,8 @@ public:
{
#if ! JUCE_FORCE_LEGACY_PARAMETER_AUTOMATION_TYPE
if (isParameterDiscrete)
{
outParameterInfo.unit = kAudioUnitParameterUnit_Indexed;
if (param->isBoolean())
outParameterInfo.unit = kAudioUnitParameterUnit_Boolean;
}
outParameterInfo.unit = param->isBoolean() ? kAudioUnitParameterUnit_Boolean
: kAudioUnitParameterUnit_Indexed;
#endif
}
@@ -1912,7 +1908,7 @@ private:
{
const AudioUnitParameterID auParamID = generateAUParameterID (param);
// Consider yourself very unlucky if you hit this assertion. The hash code of your
// Consider yourself very unlucky if you hit this assertion. The hash codes of your
// parameter ids are not unique.
jassert (! paramMap.contains (static_cast<int32> (auParamID)));


Loading…
Cancel
Save