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

198 {
199 auto pProject = GetActiveProject().lock();
200 return pProject
201 ? ProjectRate::Get( *pProject ).GetRate()
202 : 44100.0;
203}
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(), anonymous_namespace{TimerRecordDialog.cpp}::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: