"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/core/EffectChain.cpp" between
lmms-1.2.0-rc7.tar.gz and lmms-1.2.0-rc8.tar.gz

About: LMMS (Linux MultiMedia Studio) is a sound generation system (creation of melodies and beats, synthesis and mixing of sounds, arranging of samples; full MIDI support). Release candidate.

EffectChain.cpp  (lmms-1.2.0-rc7):EffectChain.cpp  (lmms-1.2.0-rc8)
skipping to change at line 48 skipping to change at line 48
{ {
} }
EffectChain::~EffectChain() EffectChain::~EffectChain()
{ {
clear(); clear();
} }
void EffectChain::saveSettings( QDomDocument & _doc, QDomElement & _this ) void EffectChain::saveSettings( QDomDocument & _doc, QDomElement & _this )
{ {
_this.setAttribute( "enabled", m_enabledModel.value() ); m_enabledModel.saveSettings( _doc, _this, "enabled" );
_this.setAttribute( "numofeffects", m_effects.count() ); _this.setAttribute( "numofeffects", m_effects.count() );
for( Effect* effect : m_effects) for( Effect* effect : m_effects)
{ {
if( DummyEffect* dummy = dynamic_cast<DummyEffect*>(effect) ) if( DummyEffect* dummy = dynamic_cast<DummyEffect*>(effect) )
{ {
_this.appendChild( dummy->originalPluginData() ); _this.appendChild( dummy->originalPluginData() );
} }
else else
{ {
skipping to change at line 72 skipping to change at line 72
} }
} }
} }
void EffectChain::loadSettings( const QDomElement & _this ) void EffectChain::loadSettings( const QDomElement & _this )
{ {
clear(); clear();
// TODO This method should probably also lock the mixer // TODO This method should probably also lock the mixer
m_enabledModel.setValue( _this.attribute( "enabled" ).toInt() ); m_enabledModel.loadSettings( _this, "enabled" );
const int plugin_cnt = _this.attribute( "numofeffects" ).toInt(); const int plugin_cnt = _this.attribute( "numofeffects" ).toInt();
QDomNode node = _this.firstChild(); QDomNode node = _this.firstChild();
int fx_loaded = 0; int fx_loaded = 0;
while( !node.isNull() && fx_loaded < plugin_cnt ) while( !node.isNull() && fx_loaded < plugin_cnt )
{ {
if( node.isElement() && node.nodeName() == "effect" ) if( node.isElement() && node.nodeName() == "effect" )
{ {
QDomElement effectData = node.toElement(); QDomElement effectData = node.toElement();
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)