mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added a method VSTPluginFormat::dispatcher() to allow raw access to a VST's dispatcher function.
This commit is contained in:
parent
2651911b87
commit
3b2ff2be4e
2 changed files with 18 additions and 0 deletions
|
|
@ -2863,4 +2863,12 @@ void VSTPluginFormat::setExtraFunctions (AudioPluginInstance* plugin, ExtraFunct
|
|||
vst->extraFunctions = f;
|
||||
}
|
||||
|
||||
VstIntPtr JUCE_CALLTYPE dispatcher (AudioPluginInstance* plugin, int32 opcode, int32 index, VstIntPtr value, void* ptr, float opt)
|
||||
{
|
||||
if (VSTPluginInstance* vst = dynamic_cast <VSTPluginInstance*> (plugin))
|
||||
return vst->dispatch (opcode, index, value, ptr, opt);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -79,6 +79,16 @@ public:
|
|||
*/
|
||||
static void setExtraFunctions (AudioPluginInstance* plugin, ExtraFunctions* functions);
|
||||
|
||||
//==============================================================================
|
||||
#if JUCE_64BIT
|
||||
typedef int64 VstIntPtr;
|
||||
#else
|
||||
typedef int32 VstIntPtr;
|
||||
#endif
|
||||
|
||||
/** This simply calls directly to the VST's AEffect::dispatcher() function. */
|
||||
static VstIntPtr JUCE_CALLTYPE dispatcher (AudioPluginInstance*, int32, int32, VstIntPtr, void*, float);
|
||||
|
||||
//==============================================================================
|
||||
String getName() const override { return "VST"; }
|
||||
void findAllTypesForFile (OwnedArray <PluginDescription>&, const String& fileOrIdentifier) override;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue