Audacity  3.0.3
Functions
anonymous_namespace{TimeTrack.cpp} Namespace Reference

Functions

double GetRate ()
 

Function Documentation

◆ GetRate()

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

Definition at line 175 of file TimeTrack.cpp.

175  {
176  auto pProject = GetActiveProject().lock();
177  return pProject
178  ? ProjectRate::Get( *pProject ).GetRate()
179  : 44100.0;
180 }

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

Referenced by TimeTrack::Clear(), DefaultSpeedPlayOptions(), WaveClipTrimHandle::Drag(), EffectEqualization::Init(), VampEffect::Init(), TimeToolBar::OnRateChanged(), TransportActions::Handler::OnTimerRecord(), SelectActions::Handler::OnZeroCrossing(), ProjectFileManager::OpenProjectFile(), TimeTrack::Paste(), NyquistEffect::Process(), NyquistEffect::ProcessOne(), MixerTrackCluster::ResetMeter(), and ProjectSelectionManager::SSBL_GetRate().

Here is the call graph for this function:
Here is the caller graph for this function:
ProjectRate::Get
static ProjectRate & Get(AudacityProject &project)
Definition: ProjectRate.cpp:42
GetActiveProject
AUDACITY_DLL_API std::weak_ptr< AudacityProject > GetActiveProject()
Definition: ActiveProject.cpp:24
ProjectRate::GetRate
double GetRate() const
Definition: ProjectRate.cpp:68