1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-10 23:44:24 +00:00

Introjucer: Better AU plugin type setting for midi synths.

This commit is contained in:
jules 2012-12-03 18:10:59 +00:00
parent 3f01bb72df
commit 88c0b1e512

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;
}