From ee9e5680b7cf4880cd46db3113e4c6d5a9b86c5c Mon Sep 17 00:00:00 2001 From: Tobias Doerffel Date: Wed, 18 Mar 2009 23:35:02 +0100 Subject: [PATCH] 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. --- plugins/ladspa_effect/ladspa_effect.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/ladspa_effect/ladspa_effect.cpp b/plugins/ladspa_effect/ladspa_effect.cpp index 087ea2d49..6303abed7 100644 --- a/plugins/ladspa_effect/ladspa_effect.cpp +++ b/plugins/ladspa_effect/ladspa_effect.cpp @@ -2,6 +2,7 @@ * ladspa_effect.cpp - class for processing LADSPA effects * * Copyright (c) 2006-2008 Danny McRae + * Copyright (c) 2009 Tobias Doerffel * * 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(); }