Audacity 3.2.0
Functions
anonymous_namespace{TimeTrack.cpp} Namespace Reference

Functions

double GetRate ()
 

Function Documentation

◆ GetRate()

double anonymous_namespace{TimeTrack.cpp}::GetRate ( )

Definition at line 199 of file TimeTrack.cpp.

199 {
200 auto pProject = GetActiveProject().lock();
201 return pProject
202 ? ProjectRate::Get( *pProject ).GetRate()
203 : 44100.0;
204}
AUDACITY_DLL_API std::weak_ptr< AudacityProject > GetActiveProject()
static ProjectRate & Get(AudacityProject &project)
Definition: ProjectRate.cpp:28
double GetRate() const
Definition: ProjectRate.cpp:53

References ProjectRate::Get(), GetActiveProject(), and ProjectRate::GetRate().

Referenced by WaveClipTrimHandle::AdjustBetweenBorders::AdjustBetweenBorders(), TimeTrack::Clear(), DefaultSpeedPlayOptions(), EffectEqualization::Init(), VampEffect::Init(), TransportActions::Handler::OnTimerRecord(), SelectActions::Handler::OnZeroCrossing(), ProjectFileManager::OpenProjectFile(), 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: