From 8ec501d6c6d5d16822270f65cc2c7326ab981199 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. (cherry picked from commit ee9e5680b7cf4880cd46db3113e4c6d5a9b86c5c) --- 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 79b3b6644..12d4db47a 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 * @@ -35,6 +36,7 @@ #include "mixer.h" #include "effect_chain.h" #include "automation_pattern.h" +#include "controller_connection.h" #undef SINGLE_SOURCE_COMPILE @@ -123,6 +125,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(); }