1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-02-20 21:21:25 +01:00

Simplify calls to Effect::Delegate

This commit is contained in:
Paul Licameli
2018-02-07 14:24:31 -05:00
parent a3be011bf6
commit 0aad028c9b
5 changed files with 8 additions and 15 deletions

View File

@@ -187,12 +187,11 @@ bool EffectChangePitch::Process()
if (mUseSBSMS)
{
double pitchRatio = 1.0 + m_dPercentChange / 100.0;
SelectedRegion region(mT0, mT1);
EffectSBSMS proxy;
proxy.mProxyEffectName = XO("High Quality Pitch Change");
proxy.setParameters(1.0, pitchRatio);
return Delegate(proxy, mUIParent, &region, false);
return Delegate(proxy, mUIParent, false);
}
else
#endif