Audacity 3.2.0
Functions
anonymous_namespace{TimeTrack.cpp} Namespace Reference

Functions

double GetRate (const Track &track)
 

Function Documentation

◆ GetRate()

double anonymous_namespace{TimeTrack.cpp}::GetRate ( const Track track)

Definition at line 196 of file TimeTrack.cpp.

196 {
197 if (auto pList = track.GetOwner()) {
198 if (auto pProject = pList->GetOwner())
199 return ProjectRate::Get(*pProject).GetRate();
200 }
201 return 44100.0;
202}
static ProjectRate & Get(AudacityProject &project)
Definition: ProjectRate.cpp:28
double GetRate() const
Definition: ProjectRate.cpp:53
std::shared_ptr< TrackList > GetOwner() const
Definition: Track.h:254

References ProjectRate::Get(), Track::GetOwner(), and ProjectRate::GetRate().

Referenced by TimeTrack::Clear(), DefaultSpeedPlayOptions(), anonymous_namespace{FileMenus.cpp}::DoExport(), cloud::audiocom::ShareAudioDialog::ExportProject(), EffectEqualization::Init(), VampEffect::Init(), anonymous_namespace{TimerRecordDialog.cpp}::OnTimerRecord(), SelectActions::Handler::OnZeroCrossing(), TimeTrack::Paste(), and MixerTrackCluster::ResetMeter().

Here is the call graph for this function:
Here is the caller graph for this function: