make dummyEffect really work in case we need it
git-svn-id: https://lmms.svn.sf.net/svnroot/lmms/trunk/lmms@635 0778d3d1-df1d-0410-868b-ea421aaaa00d
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
2008-01-02 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* include/dummy_effect.h:
|
||||
* src/core/effect.cpp:
|
||||
make dummyEffect really work in case we need it
|
||||
|
||||
2008-01-02 Tobias Doerffel <tobydox/at/users/dot/sourceforge/dot/net>
|
||||
|
||||
* src/widgets/rack_plugin.cpp:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
/*
|
||||
* dummy_effect.h - effect used as fallback if an effect couldn't be loaded
|
||||
*
|
||||
* Copyright (c) 2006 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
* Copyright (c) 2006-2008 Tobias Doerffel <tobydox/at/users.sourceforge.net>
|
||||
*
|
||||
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
|
||||
*
|
||||
@@ -27,6 +27,29 @@
|
||||
#define _DUMMY_EFFECT_H
|
||||
|
||||
#include "effect.h"
|
||||
#include "effect_control_dialog.h"
|
||||
|
||||
|
||||
class dummyEffectControlDialog : public effectControlDialog
|
||||
{
|
||||
public:
|
||||
dummyEffectControlDialog( effect * _eff ) :
|
||||
effectControlDialog( NULL, _eff )
|
||||
{
|
||||
}
|
||||
|
||||
virtual ch_cnt_t getControlCount( void )
|
||||
{
|
||||
return( 0 );
|
||||
}
|
||||
|
||||
inline virtual QString nodeName( void ) const
|
||||
{
|
||||
return( "dummycontrols" );
|
||||
}
|
||||
|
||||
} ;
|
||||
|
||||
|
||||
|
||||
class dummyEffect : public effect
|
||||
@@ -57,8 +80,7 @@ public:
|
||||
|
||||
inline virtual effectControlDialog * createControlDialog( track * )
|
||||
{
|
||||
// TODO: setup a dummy control-dialog for not crashing LMMS
|
||||
return( NULL );
|
||||
return( new dummyEffectControlDialog( this ) );
|
||||
}
|
||||
|
||||
} ;
|
||||
|
||||
@@ -35,7 +35,7 @@
|
||||
effect::effect( const plugin::descriptor * _desc,
|
||||
const descriptor::subPluginFeatures::key * _key ) :
|
||||
plugin( _desc ),
|
||||
m_key( *_key ),
|
||||
m_key( _key ? *_key : descriptor::subPluginFeatures::key() ),
|
||||
m_okay( TRUE ),
|
||||
m_noRun( FALSE ),
|
||||
m_running( FALSE ),
|
||||
|
||||
Reference in New Issue
Block a user