* 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

@@ -174,6 +174,7 @@ public:
{
ProjectFile,
PresetFile,
SpecialPresetFile,
SampleFile,
MidiFile,
FlpFile,

View File

@@ -62,7 +62,9 @@ public:
// to be implemented by actual plugin
virtual void playNote( notePlayHandle * _note_to_play,
bool _try_parallelizing,
sampleFrame * _working_buf ) = 0;
sampleFrame * _working_buf )
{
}
// needed for deleting plugin-specific-data of a note - plugin has to
// cast void-ptr so that the plugin-data is deleted properly

View File

@@ -90,6 +90,11 @@ public:
return( m_instrument );
}
inline instrument * getInstrument( void )
{
return( m_instrument );
}
void deleteNotePluginData( notePlayHandle * _n );
// name-stuff

View File

@@ -72,6 +72,12 @@ public:
int version;
PluginTypes type;
const pixmapLoader * logo;
const char * supportedFileTypes;
inline bool supportsFileType( const QString & _ext ) const
{
return( QString( supportedFileTypes ).
split( ',' ).contains( _ext ) );
}
class EXPORT subPluginFeatures
{
public:
@@ -128,12 +134,6 @@ public:
{
}
virtual const QStringList & supportedExtensions( void )
{
static QStringList no_extensions;
return( no_extensions );
}
protected:
const plugin::PluginTypes m_type;

View File

@@ -37,7 +37,8 @@ class previewTrackContainer;
class presetPreviewPlayHandle : public playHandle
{
public:
presetPreviewPlayHandle( const QString & _preset_file );
presetPreviewPlayHandle( const QString & _preset_file,
bool _special_preset = false );
virtual ~presetPreviewPlayHandle();
virtual void play( bool _try_parallelizing,