Audacity 3.2.0
Functions | Variables
anonymous_namespace{TimeSnapFunctions.cpp} Namespace Reference

Functions

double SnapToSamples (const AudacityProject &project)
 

Variables

SnapRegistryItemRegistrator secondsAndSamples
 

Detailed Description


Audacity: A Digital Audio Editor

TimeSnapFunctions.cpp

Dmitry Vedenko

Function Documentation

◆ SnapToSamples()

double anonymous_namespace{TimeSnapFunctions.cpp}::SnapToSamples ( const AudacityProject project)

Definition at line 18 of file TimeSnapFunctions.cpp.

19{
21}
const auto project
static ProjectRate & Get(AudacityProject &project)
Definition: ProjectRate.cpp:28
double GetRate() const
Definition: ProjectRate.cpp:53

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

Here is the call graph for this function:

Variable Documentation

◆ secondsAndSamples

SnapRegistryItemRegistrator anonymous_namespace{TimeSnapFunctions.cpp}::secondsAndSamples
Initial value:
{
"time", { XO("Seconds && samples"), false },
TimeInvariantSnapFunction("seconds", XO("Seconds"), 1.0),
TimeInvariantSnapFunction("deciseconds", XO("Deciseconds"), 10.0),
TimeInvariantSnapFunction("centiseconds", XO("Centiseconds"), 100.0),
TimeInvariantSnapFunction("milliseconds", XO("Milliseconds"), 1000.0),
TimeInvariantSnapFunction("samples", XO("Samples"), SnapToSamples))
),
}
XO("Cut/Copy/Paste")
std::unique_ptr< SnapRegistryItem > TimeInvariantSnapFunction(const Identifier &functionId, const TranslatableString &label, MultiplierFunctor functor)
Definition: SnapUtils.cpp:286
constexpr auto SnapFunctionGroup
Definition: SnapUtils.h:98
constexpr auto SnapFunctionItems
Definition: SnapUtils.h:123
double SnapToSamples(const AudacityProject &project)

Definition at line 23 of file TimeSnapFunctions.cpp.