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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user