1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-11 23:54:18 +00:00

Added flag: JucePlugin_AAXDisableBypass

This commit is contained in:
jules 2012-09-28 09:23:07 +01:00
parent 3578465cba
commit bc259dc955
2 changed files with 7 additions and 0 deletions

View file

@ -53,6 +53,7 @@ namespace
Value getPluginRTASCategory (Project& project) { return project.getProjectValue ("pluginRTASCategory"); }
Value getPluginRTASBypassDisabled (Project& project) { return project.getProjectValue ("pluginRTASDisableBypass"); }
Value getPluginAAXCategory (Project& project) { return project.getProjectValue ("pluginAAXCategory"); }
Value getPluginAAXBypassDisabled (Project& project) { return project.getProjectValue ("pluginAAXDisableBypass"); }
String getPluginRTASCategoryCode (Project& project)
{
@ -140,6 +141,7 @@ namespace
flags.set ("JucePlugin_AAXProductId", "JucePlugin_PluginCode");
flags.set ("JucePlugin_AAXPluginId", "JucePlugin_PluginCode");
flags.set ("JucePlugin_AAXCategory", getPluginAAXCategory (project).toString());
flags.set ("JucePlugin_AAXDisableBypass", valueToBool (getPluginAAXBypassDisabled (project)));
MemoryOutputStream mem;

View file

@ -506,7 +506,12 @@ struct AAXClasses
properties->AddProperty (AAX_eProperty_ManufacturerID, JucePlugin_AAXManufacturerCode);
properties->AddProperty (AAX_eProperty_ProductID, JucePlugin_AAXProductId);
#if JucePlugin_AAXDisableBypass
properties->AddProperty (AAX_eProperty_CanBypass, false);
#else
properties->AddProperty (AAX_eProperty_CanBypass, true);
#endif
properties->AddProperty (AAX_eProperty_InputStemFormat, getFormatForChans (numInputs));
properties->AddProperty (AAX_eProperty_OutputStemFormat, getFormatForChans (numOutputs));