* 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:
@@ -174,6 +174,7 @@ public:
|
||||
{
|
||||
ProjectFile,
|
||||
PresetFile,
|
||||
SpecialPresetFile,
|
||||
SampleFile,
|
||||
MidiFile,
|
||||
FlpFile,
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -90,6 +90,11 @@ public:
|
||||
return( m_instrument );
|
||||
}
|
||||
|
||||
inline instrument * getInstrument( void )
|
||||
{
|
||||
return( m_instrument );
|
||||
}
|
||||
|
||||
void deleteNotePluginData( notePlayHandle * _n );
|
||||
|
||||
// name-stuff
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user