Browse Source

Introjucer RTAS fix. VST fix for intel compiler.

tags/2021-05-28
jules 13 years ago
parent
commit
0301e9d1e4
2 changed files with 16 additions and 4 deletions
  1. +13
    -1
      extras/Introjucer/Source/Project/jucer_AudioPluginModule.h
  2. +3
    -3
      modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp

+ 13
- 1
extras/Introjucer/Source/Project/jucer_AudioPluginModule.h View File

@@ -50,6 +50,18 @@ namespace
Value getPluginAUCocoaViewClassName (const Project& project) { return project.getProjectValue ("pluginAUViewClass"); }
Value getPluginRTASCategory (const Project& project) { return project.getProjectValue ("pluginRTASCategory"); }
String getPluginRTASCategoryCode (const Project& project)
{
if (static_cast <bool> (getPluginIsSynth (project).getValue()))
return "ePlugInCategory_SWGenerators";
String s (getPluginRTASCategory (project).toString());
if (s.isEmpty())
s = "ePlugInCategory_None";
return s;
}
int countMaxPluginChannels (const String& configString, bool isInput)
{
StringArray configs;
@@ -103,7 +115,7 @@ namespace
<< "#define JucePlugin_AUManufacturerCode JucePlugin_ManufacturerCode" << newLine
<< "#define JucePlugin_CFBundleIdentifier " << project.getBundleIdentifier().toString() << newLine
<< "#define JucePlugin_AUCocoaViewClassName " << getPluginAUCocoaViewClassName (project).toString() << newLine
<< "#define JucePlugin_RTASCategory " << ((bool) getPluginIsSynth (project).getValue() ? "ePlugInCategory_SWGenerators" : "ePlugInCategory_None") << newLine
<< "#define JucePlugin_RTASCategory " << getPluginRTASCategoryCode (project) << newLine
<< "#define JucePlugin_RTASManufacturerCode JucePlugin_ManufacturerCode" << newLine
<< "#define JucePlugin_RTASProductId JucePlugin_PluginCode" << newLine
<< newLine;


+ 3
- 3
modules/juce_audio_plugin_client/VST/juce_VST_Wrapper.cpp View File

@@ -1448,10 +1448,10 @@ namespace
return pluginEntryPoint (audioMaster);
}
#ifndef _WIN64 // (can't compile this on win64, but it's not needed anyway with VST2.4)
extern "C" __declspec (dllexport) void* main (audioMasterCallback audioMaster)
#ifndef JUCE_64BIT // (can't compile this on win64, but it's not needed anyway with VST2.4)
extern "C" __declspec (dllexport) int main (audioMasterCallback audioMaster)
{
return (void*) pluginEntryPoint (audioMaster);
return (int) pluginEntryPoint (audioMaster);
}
#endif


Loading…
Cancel
Save