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:
parent
3f01bb72df
commit
88c0b1e512
1 changed files with 6 additions and 2 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue