From 3755e575916be191aabfcc312ca93e2e58514d51 Mon Sep 17 00:00:00 2001 From: lllucius Date: Mon, 5 Jan 2015 15:50:45 +0000 Subject: [PATCH] Do not call start/stop if suspended The RealtimeProcessStart/Stop methods are used to process the samples for the master effect (the one the user interacts with), it should be bypassed as well if suspended. --- src/effects/EffectManager.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/effects/EffectManager.cpp b/src/effects/EffectManager.cpp index cb7d170aa..4695b26b2 100644 --- a/src/effects/EffectManager.cpp +++ b/src/effects/EffectManager.cpp @@ -658,7 +658,10 @@ void EffectManager::RealtimeProcessStart() { for (size_t i = 0, cnt = mRealtimeEffects.GetCount(); i < cnt; i++) { - mRealtimeEffects[i]->RealtimeProcessStart(); + if (mRealtimeEffects[i]->IsRealtimeActive()) + { + mRealtimeEffects[i]->RealtimeProcessStart(); + } } } @@ -754,7 +757,10 @@ void EffectManager::RealtimeProcessEnd() { for (size_t i = 0, cnt = mRealtimeEffects.GetCount(); i < cnt; i++) { - mRealtimeEffects[i]->RealtimeProcessEnd(); + if (mRealtimeEffects[i]->IsRealtimeActive()) + { + mRealtimeEffects[i]->RealtimeProcessEnd(); + } } }