Plugins: export PluginDescriptors and lmms_plugin_main function

Various plugins were missing the PLUGIN_EXPORT declaration with their
PluginDescriptor instantiations and lmms_plugin_main implementation
which made some plugins not show up with latest Win32 build.
This commit is contained in:
Tobias Doerffel
2010-07-23 22:16:06 +02:00
parent 9b76a4b6b4
commit f85898ba6e
5 changed files with 14 additions and 13 deletions

View File

@@ -2,7 +2,7 @@
* sf2_player.cpp - a soundfont2 player using fluidSynth
*
* Copyright (c) 2008 Paul Giblock <drfaygo/at/gmail/dot/com>
* Copyright (c) 2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2009-2010 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -48,7 +48,7 @@
extern "C"
{
Plugin::Descriptor sf2player_plugin_descriptor =
Plugin::Descriptor PLUGIN_EXPORT sf2player_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
"Sf2 Player",
@@ -1104,7 +1104,7 @@ extern "C"
{
// necessary for getting instance out of shared lib
Plugin * lmms_plugin_main( Model *, void * _data )
Plugin * PLUGIN_EXPORT lmms_plugin_main( Model *, void * _data )
{
return new sf2Instrument( static_cast<InstrumentTrack *>( _data ) );
}

View File

@@ -2,7 +2,8 @@
* mallets.cpp - tuned instruments that one would bang upon
*
* Copyright (c) 2006-2008 Danny McRae <khjklujn/at/users.sourceforge.net>
*
* Copyright (c) 2009-2010 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
* This program is free software; you can redistribute it and/or
@@ -41,7 +42,7 @@
extern "C"
{
Plugin::Descriptor malletsstk_plugin_descriptor =
Plugin::Descriptor PLUGIN_EXPORT malletsstk_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
"Mallets",
@@ -655,7 +656,7 @@ extern "C"
{
// necessary for getting instance out of shared lib
Plugin * lmms_plugin_main( Model *, void * _data )
Plugin * PLUGIN_EXPORT lmms_plugin_main( Model *, void * _data )
{
return new malletsInstrument( static_cast<InstrumentTrack *>( _data ) );
}

View File

@@ -47,7 +47,7 @@
extern "C"
{
Plugin::Descriptor vestige_plugin_descriptor =
Plugin::Descriptor PLUGIN_EXPORT vestige_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
"VeSTige",
@@ -482,7 +482,7 @@ extern "C"
{
// necessary for getting instance out of shared lib
Plugin * lmms_plugin_main( Model *, void * _data )
Plugin * PLUGIN_EXPORT lmms_plugin_main( Model *, void * _data )
{
return new vestigeInstrument( static_cast<InstrumentTrack *>( _data ) );
}

View File

@@ -2,7 +2,7 @@
* vst_base.cpp - VST-base-code to be used by any LMMS plugins dealing with VST-
* plugins
*
* Copyright (c) 2006-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2006-2010 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -31,7 +31,7 @@
extern "C"
{
Plugin::Descriptor vstbase_plugin_descriptor =
Plugin::Descriptor PLUGIN_EXPORT vstbase_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
"VST Base",

View File

@@ -1,7 +1,7 @@
/*
* VstEffect.cpp - class for handling VST effect plugins
*
* Copyright (c) 2006-2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
* Copyright (c) 2006-2010 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -35,7 +35,7 @@
extern "C"
{
Plugin::Descriptor vsteffect_plugin_descriptor =
Plugin::Descriptor PLUGIN_EXPORT vsteffect_plugin_descriptor =
{
STRINGIFY( PLUGIN_NAME ),
"VST Effect",
@@ -175,7 +175,7 @@ extern "C"
{
// necessary for getting instance out of shared lib
Plugin * lmms_plugin_main( Model * _parent, void * _data )
Plugin * PLUGIN_EXPORT lmms_plugin_main( Model * _parent, void * _data )
{
return new VstEffect( _parent,
static_cast<const Plugin::Descriptor::SubPluginFeatures::Key *>(