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 d454ef60e2
commit 20a6b96161
2 changed files with 11 additions and 8 deletions

View File

@@ -331,7 +331,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 );
@@ -819,7 +819,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" );