small compat-fixes

git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@182 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2006-06-28 10:45:09 +00:00
parent aa1b3b6bc5
commit 7147229b2a
4 changed files with 22 additions and 7 deletions

View File

@@ -5,7 +5,7 @@
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
* Code partly taken from XFST:
* Code partly taken from (X)FST:
* Copyright (c) 2004 Paul Davis
* Copyright (c) 2004 Torben Hohn
* Copyright (c) 2002 Kjetil S. Matheussen
@@ -611,14 +611,18 @@ void VSTPlugin::getParameterProperties( const Sint32 _idx )
memcpy( props.label, vst_props.label, sizeof( props.label ) );
memcpy( props.shortLabel, vst_props.shortLabel,
sizeof( props.shortLabel) );
#if kVstVersion > 2
memcpy( props.categoryLabel, vst_props.categoryLabel,
sizeof( props.categoryLabel ) );
#endif
props.minValue = vst_props.minInteger;
props.maxValue = vst_props.maxInteger;
props.step = ( vst_props.flags & kVstParameterUsesFloatStep ) ?
vst_props.stepFloat :
vst_props.stepInteger;
#if kVstVersion > 2
props.category = vst_props.category;
#endif
writeValue<Sint16>( VST_PARAMETER_PROPERTIES );
writeValue<vstParamProperties>( props );
}
@@ -966,6 +970,7 @@ VstIntPtr VSTPlugin::hostCallback( AEffect * _effect, VstInt32 _opcode,
0.0f );
return( 0 );
#if kVstVersion > 2
case audioMasterBeginEdit:
SHOW_CALLBACK( "amc: audioMasterBeginEdit\n" );
// begin of automation session (when mouse down),
@@ -983,7 +988,7 @@ VstIntPtr VSTPlugin::hostCallback( AEffect * _effect, VstInt32 _opcode,
// open a fileselector window with VstFileSelect*
// in <ptr>
return( 0 );
#endif
default:
SHOW_CALLBACK( "VST master dispatcher: undefined: "
"%d\n", (int) _opcode );