1
0
mirror of https://github.com/cookiengineer/audacity synced 2026-03-11 00:45:53 +01:00

Bug 2418 - Time toolbar displays incorrect time if project rate isn't 44100

This commit is contained in:
Leland Lucius
2020-05-31 03:22:53 -05:00
parent 419e152ebd
commit c43c757bce
4 changed files with 40 additions and 10 deletions

View File

@@ -163,6 +163,20 @@ const NumericFormatSymbol & ProjectSettings::GetAudioTimeFormat() const
return mAudioTimeFormat;
}
double ProjectSettings::GetRate() const
{
return mRate;
}
void ProjectSettings::SetRate(double rate)
{
auto &project = mProject;
if (rate != mRate) {
mRate = rate;
Notify( project, ChangedProjectRate );
}
}
void ProjectSettings::SetSnapTo(int snap)
{
mSnapTo = snap;