mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
AU plugin factory class fix.
This commit is contained in:
parent
a1c357fa1f
commit
3e6e7225a2
1 changed files with 7 additions and 1 deletions
|
|
@ -1439,11 +1439,17 @@ private:
|
|||
return ComponentEntryPoint<Class>::Dispatch (params, obj); \
|
||||
}
|
||||
|
||||
#if JucePlugin_ProducesMidiOutput || JucePlugin_WantsMidiInput
|
||||
#define FACTORY_BASE_CLASS AUMIDIEffectFactory
|
||||
#else
|
||||
#define FACTORY_BASE_CLASS AUBaseFactory
|
||||
#endif
|
||||
|
||||
#define JUCE_FACTORY_ENTRYX(Class, Name) \
|
||||
extern "C" __attribute__((visibility("default"))) void* Name ## Factory (const AudioComponentDescription* desc); \
|
||||
extern "C" __attribute__((visibility("default"))) void* Name ## Factory (const AudioComponentDescription* desc) \
|
||||
{ \
|
||||
return AUBaseFactory<Class>::Factory (desc); \
|
||||
return FACTORY_BASE_CLASS<Class>::Factory (desc); \
|
||||
}
|
||||
|
||||
#define JUCE_COMPONENT_ENTRY(Class, Name, Suffix) JUCE_COMPONENT_ENTRYX(Class, Name, Suffix)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue