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 182 of file TimeTrack.cpp.

182 {
183 if (auto pList = track.GetOwner()) {
184 if (auto pProject = pList->GetOwner())
185 return ProjectRate::Get(*pProject).GetRate();
186 }
187 return 44100.0;
188}
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:230

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

Referenced by TimeTrack::Clear(), DefaultSpeedPlayOptions(), WaveTrack::DoCreateClip(), anonymous_namespace{FileMenus.cpp}::DoExport(), audacity::cloud::audiocom::sync::MixdownUploader::ExportProject(), audacity::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: