VST support layer: fixed non-working 64 bit VST plugins

LMMS' native Win64 VST host capabilities were broken due to wrong data
types in some places. On 32 bit there's no difference between a pointer
and an int but on x64 there is, therefore fix data types where
approriate. Makes 64 bit VST DLLs work in LMMS/Win64.
This commit is contained in:
Tobias Doerffel
2010-12-23 23:45:12 +01:00
parent 619e86dd1a
commit be92c67b94
2 changed files with 12 additions and 20 deletions

View File

@@ -77,9 +77,6 @@
#define OLD_VST_SDK
#define VstInt32 long int
#define VstIntPtr long int
struct ERect
{
short top;
@@ -228,8 +225,8 @@ private:
} ;
// callback used by plugin for being able to communicate with it's host
static VstIntPtr hostCallback( AEffect * _effect, VstInt32 _opcode,
VstInt32 _index, VstIntPtr _value,
static intptr_t hostCallback( AEffect * _effect, int32_t _opcode,
int32_t _index, intptr_t _value,
void * _ptr, float _opt );
@@ -886,8 +883,8 @@ void RemoteVstPlugin::updateInOutCount()
* - audioMasterGetDirectory: return either VST-plugin-dir or LMMS-workingdir
* - audioMasterOpenFileSelector: show QFileDialog?
*/
VstIntPtr RemoteVstPlugin::hostCallback( AEffect * _effect, VstInt32 _opcode,
VstInt32 _index, VstIntPtr _value,
intptr_t RemoteVstPlugin::hostCallback( AEffect * _effect, int32_t _opcode,
int32_t _index, intptr_t _value,
void * _ptr, float _opt )
{
static VstTimeInfo _timeInfo;