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:
parent
c8cabab88b
commit
3755e57591
@ -657,10 +657,13 @@ void EffectManager::RealtimeProcessStart()
|
||||
if (!mRealtimeSuspended)
|
||||
{
|
||||
for (size_t i = 0, cnt = mRealtimeEffects.GetCount(); i < cnt; i++)
|
||||
{
|
||||
if (mRealtimeEffects[i]->IsRealtimeActive())
|
||||
{
|
||||
mRealtimeEffects[i]->RealtimeProcessStart();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mRealtimeLock.Leave();
|
||||
}
|
||||
@ -753,10 +756,13 @@ void EffectManager::RealtimeProcessEnd()
|
||||
if (!mRealtimeSuspended)
|
||||
{
|
||||
for (size_t i = 0, cnt = mRealtimeEffects.GetCount(); i < cnt; i++)
|
||||
{
|
||||
if (mRealtimeEffects[i]->IsRealtimeActive())
|
||||
{
|
||||
mRealtimeEffects[i]->RealtimeProcessEnd();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mRealtimeLock.Leave();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user