mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-02-09 04:30:09 +00:00
Clean-ups and small fix for plugin hosting classes.
This commit is contained in:
parent
45befc9ed2
commit
c7957d7d1e
14 changed files with 147 additions and 206 deletions
|
|
@ -365,15 +365,15 @@ public:
|
|||
|
||||
log ("Attempting to load VST: " + file.getFullPathName());
|
||||
|
||||
ModuleHandle* m = new ModuleHandle (file);
|
||||
ScopedPointer <ModuleHandle> m (new ModuleHandle (file));
|
||||
|
||||
if (! m->open())
|
||||
deleteAndZero (m);
|
||||
m = 0;
|
||||
|
||||
--insideVSTCallback;
|
||||
_fpreset(); // (doesn't do any harm)
|
||||
|
||||
return m;
|
||||
return m.release();
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
@ -2915,7 +2915,7 @@ AudioPluginInstance* VSTPluginFormat::createInstanceFromDescription (const Plugi
|
|||
|
||||
if (result->effect != 0)
|
||||
{
|
||||
result->effect->resvd2 = (VstIntPtr) (pointer_sized_int) result;
|
||||
result->effect->resvd2 = (VstIntPtr) (pointer_sized_int) (VSTPluginInstance*) result;
|
||||
result->initialise();
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue