* improved concept for file types supported by certain plugins

* various small improvements for an even better ZynAddSubFX integration



git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@1520 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
Tobias Doerffel
2008-08-30 00:07:02 +00:00
parent 5d6cfc01f8
commit 9b47d27f56
34 changed files with 150 additions and 101 deletions

View File

@@ -61,7 +61,8 @@ plugin::descriptor PLUGIN_EXPORT audiofileprocessor_plugin_descriptor =
0x0100,
plugin::Instrument,
new pluginPixmapLoader( "logo" ),
new audioFileProcessor::subPluginFeatures( plugin::Instrument )
"wav,ogg,ds,spx,au,voc,aif,aiff,flac,raw",
NULL
} ;
}
@@ -273,28 +274,6 @@ void audioFileProcessor::loopPointChanged( void )
audioFileProcessor::subPluginFeatures::subPluginFeatures(
plugin::PluginTypes _type ) :
plugin::descriptor::subPluginFeatures( _type )
{
}
const QStringList & audioFileProcessor::subPluginFeatures::supportedExtensions(
void )
{
static QStringList extensions = QStringList()
<< "wav" << "ogg" << "ds" << "spx" << "au"
<< "voc" << "aif" << "aiff" << "flac" << "raw";
return( extensions );
}
class audioFileKnob : public knob
{
public:

View File

@@ -41,16 +41,6 @@ class audioFileProcessor : public instrument
{
Q_OBJECT
public:
class subPluginFeatures : public plugin::descriptor::subPluginFeatures
{
public:
subPluginFeatures( plugin::PluginTypes _type );
virtual const QStringList & supportedExtensions( void );
} ;
audioFileProcessor( instrumentTrack * _instrument_track );
virtual ~audioFileProcessor();

View File

@@ -43,6 +43,7 @@ plugin::descriptor PLUGIN_EXPORT bassbooster_plugin_descriptor =
0x0100,
plugin::Effect,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -61,6 +61,7 @@ plugin::descriptor PLUGIN_EXPORT bitinvader_plugin_descriptor =
0x0100,
plugin::Instrument,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -75,6 +75,7 @@ plugin::descriptor PLUGIN_EXPORT flpimport_plugin_descriptor =
0x0100,
plugin::ImportFilter,
NULL,
NULL,
NULL
} ;

View File

@@ -50,6 +50,7 @@ plugin::descriptor PLUGIN_EXPORT kicker_plugin_descriptor =
0x0100,
plugin::Instrument,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -57,6 +57,7 @@ plugin::descriptor PLUGIN_EXPORT ladspabrowser_plugin_descriptor =
0x0100,
plugin::Tool,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -54,6 +54,7 @@ plugin::descriptor PLUGIN_EXPORT ladspaeffect_plugin_descriptor =
0x0100,
plugin::Effect,
new pluginPixmapLoader( "logo" ),
NULL,
new ladspaSubPluginFeatures( plugin::Effect )
} ;

View File

@@ -87,6 +87,7 @@ plugin::descriptor PLUGIN_EXPORT lb302_plugin_descriptor =
0x0100,
plugin::Instrument,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
};

View File

@@ -56,6 +56,7 @@ plugin::descriptor PLUGIN_EXPORT livetool_plugin_descriptor =
0x0100,
plugin::Tool,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -58,6 +58,7 @@ plugin::descriptor PLUGIN_EXPORT midiimport_plugin_descriptor =
0x0100,
plugin::ImportFilter,
NULL,
NULL,
NULL
} ;

View File

@@ -56,6 +56,7 @@ plugin::descriptor PLUGIN_EXPORT organic_plugin_descriptor =
0x0100,
plugin::Instrument,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -58,6 +58,7 @@ plugin::descriptor PLUGIN_EXPORT patman_plugin_descriptor =
0x0100,
plugin::Instrument,
new pluginPixmapLoader( "logo" ),
NULL,
new patmanInstrument::subPluginFeatures( plugin::Instrument )
} ;

View File

@@ -46,6 +46,7 @@ plugin::descriptor PLUGIN_EXPORT peakcontrollereffect_plugin_descriptor =
0x0100,
plugin::Effect,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -58,7 +58,8 @@ plugin::descriptor sf2player_plugin_descriptor =
0x0100,
plugin::Instrument,
new pluginPixmapLoader( "logo" ),
new sf2Instrument::subPluginFeatures( plugin::Instrument )
"sf2",
NULL
} ;
}
@@ -634,22 +635,9 @@ pluginView * sf2Instrument::instantiateView( QWidget * _parent )
sf2Instrument::subPluginFeatures::subPluginFeatures(
plugin::PluginTypes _type ) :
plugin::descriptor::subPluginFeatures( _type )
{
}
const QStringList & sf2Instrument::subPluginFeatures::supportedExtensions(
void )
{
static QStringList extensions = QStringList() << "sf2";
return( extensions );
}
class sf2Knob : public knob
{
public:

View File

@@ -48,14 +48,6 @@ class sf2Instrument : public instrument
{
Q_OBJECT
public:
class subPluginFeatures : public plugin::descriptor::subPluginFeatures
{
public:
subPluginFeatures( plugin::PluginTypes _type );
virtual const QStringList & supportedExtensions( void );
} ;
sf2Instrument( instrumentTrack * _instrument_track );
virtual ~sf2Instrument();
@@ -85,11 +77,6 @@ public:
return( FALSE );
}
virtual bool supportsParallelizing( void ) const
{
return( FALSE );
}
virtual pluginView * instantiateView( QWidget * _parent );
QString getCurrentPatchName();

View File

@@ -80,6 +80,7 @@ plugin::descriptor PLUGIN_EXPORT sid_plugin_descriptor =
0x0100,
plugin::Instrument,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -44,6 +44,7 @@ plugin::descriptor PLUGIN_EXPORT spectrumanalyzer_plugin_descriptor =
0x0100,
plugin::Effect,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -43,6 +43,7 @@ plugin::descriptor PLUGIN_EXPORT stereoenhancer_plugin_descriptor =
0x0100,
plugin::Effect,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -43,6 +43,7 @@ plugin::descriptor PLUGIN_EXPORT stereomatrix_plugin_descriptor =
0x0100,
plugin::Effect,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -52,6 +52,7 @@ plugin::descriptor malletsstk_plugin_descriptor =
0x0100,
plugin::Instrument,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -58,6 +58,7 @@ plugin::descriptor PLUGIN_EXPORT tripleoscillator_plugin_descriptor =
0x0110,
plugin::Instrument,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -59,6 +59,7 @@ plugin::descriptor vestige_plugin_descriptor =
0x0100,
plugin::Instrument,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
} ;

View File

@@ -57,6 +57,7 @@ plugin::descriptor PLUGIN_EXPORT vibedstrings_plugin_descriptor =
0x0100,
plugin::Instrument,
new pluginPixmapLoader( "logo" ),
NULL,
NULL
};

View File

@@ -50,6 +50,7 @@ plugin::descriptor vsteffect_plugin_descriptor =
0x0200,
plugin::Effect,
new pluginPixmapLoader( "logo" ),
NULL,
new vstSubPluginFeatures( plugin::Effect )
} ;