1
0
mirror of https://github.com/cookiengineer/audacity synced 2025-08-08 08:01:19 +02:00

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.
This commit is contained in:
lllucius 2015-01-05 15:50:45 +00:00
parent c8cabab88b
commit 3755e57591

View File

@ -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();
}
}
}