1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-16 19:26:36 +01:00

New attached structure ProjectSettings stores rate, snap-to, et al.

This commit is contained in:
Paul Licameli
2019-05-27 10:17:16 -04:00
parent 327845b0ee
commit dd10e00a2d
40 changed files with 371 additions and 228 deletions

View File

@@ -163,8 +163,7 @@ Effect::Effect()
mUIDebug = false;
AudacityProject *p = GetActiveProject();
mProjectRate = p ? p->GetRate() : 44100;
mProjectRate = p ? ProjectSettings::Get( *p ).GetRate() : 44100;
mIsBatch = false;
}
@@ -770,7 +769,7 @@ NumericFormatSymbol Effect::GetDurationFormat()
NumericFormatSymbol Effect::GetSelectionFormat()
{
return GetActiveProject()->GetSelectionFormat();
return ProjectSettings( *GetActiveProject() ).GetSelectionFormat();
}
void Effect::SetDuration(double seconds)