Browse Source

Introjucer: Better AU plugin type setting for midi synths.

tags/2021-05-28
jules 13 years ago
parent
commit
88c0b1e512
1 changed files with 6 additions and 2 deletions
  1. +6
    -2
      extras/Introjucer/Source/Project/jucer_AudioPluginModule.h

+ 6
- 2
extras/Introjucer/Source/Project/jucer_AudioPluginModule.h View File

@@ -73,8 +73,12 @@ namespace
String s (getPluginAUMainType (project).toString());
if (s.isEmpty())
s = static_cast <bool> (getPluginIsSynth (project).getValue()) ? "kAudioUnitType_MusicDevice"
: "kAudioUnitType_Effect";
{
if (getPluginIsSynth (project).getValue()) s = "kAudioUnitType_MusicDevice";
else if (getPluginWantsMidiInput (project).getValue()) s = "kAudioUnitType_MusicEffect";
else s = "kAudioUnitType_Effect";
}
return s;
}


Loading…
Cancel
Save