Fix 64bit VSTs on Linux by fixing callback calling convention

This commit is contained in:
Lukas W
2018-01-14 23:03:10 +01:00
parent 39d83ee916
commit be0c02f7c6
2 changed files with 11 additions and 8 deletions

View File

@@ -328,7 +328,7 @@ private:
} ;
// callback used by plugin for being able to communicate with it's host
static intptr_t hostCallback( AEffect * _effect, int32_t _opcode,
static VST_CALL_CONV intptr_t hostCallback( AEffect * _effect, int32_t _opcode,
int32_t _index, intptr_t _value,
void * _ptr, float _opt );
@@ -793,7 +793,7 @@ bool RemoteVstPlugin::load( const std::string & _plugin_file )
return false;
}
typedef AEffect * ( __cdecl * mainEntryPointer )
typedef AEffect * ( VST_CALL_CONV * mainEntryPointer )
( audioMasterCallback );
mainEntryPointer mainEntry = (mainEntryPointer)
GetProcAddress( m_libInst, "VSTPluginMain" );