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

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

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

Referenced by WaveClipTrimHandle::AdjustBetweenBorders::AdjustBetweenBorders(), TimeTrack::Clear(), DefaultSpeedPlayOptions(), EffectEqualization::Init(), VampEffect::Init(), anonymous_namespace{TimerRecordDialog.cpp}::OnTimerRecord(), SelectActions::Handler::OnZeroCrossing(), TimeTrack::Paste(), NyquistEffect::Process(), NyquistEffect::ProcessOne(), MixerTrackCluster::ResetMeter(), ProjectSelectionManager::SSBL_GetRate(), WaveClipTrimHandle::AdjustBorder::Trim(), and WaveClipTrimHandle::AdjustBetweenBorders::Trim().

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