LadspaEffect: fixed controller connections on samplerate changes

When global samplerate changes, settings of a LADSPA effect are stored in
a temporary object, the effect is reloaded and the settings are restored.
However, controller connections weren't restored properly as the connections
were not finalized. This commit fixes the issue.
This commit is contained in:
Tobias Doerffel
2009-03-18 23:35:02 +01:00
parent 617def002b
commit ee9e5680b7

View File

@@ -2,6 +2,7 @@
* ladspa_effect.cpp - class for processing LADSPA effects
*
* Copyright (c) 2006-2008 Danny McRae <khjklujn/at/users.sourceforge.net>
* Copyright (c) 2009 Tobias Doerffel <tobydox/at/users.sourceforge.net>
*
* This file is part of Linux MultiMedia Studio - http://lmms.sourceforge.net
*
@@ -36,6 +37,7 @@
#include "effect_chain.h"
#include "basic_ops.h"
#include "automation_pattern.h"
#include "controller_connection.h"
#undef SINGLE_SOURCE_COMPILE
@@ -124,6 +126,9 @@ void ladspaEffect::changeSampleRate( void )
// the IDs of re-created controls have been saved and now need to be
// resolved again
automationPattern::resolveAllIDs();
// make sure, connections are ok
controllerConnection::finalizeConnections();
}