Audacity 3.2.0
Namespaces | Macros | Functions | Variables
TimeTrack.cpp File Reference
#include "TimeTrack.h"
#include <cfloat>
#include <wx/wxcrtvararg.h>
#include "Envelope.h"
#include "Mix.h"
#include "Project.h"
#include "ProjectRate.h"
Include dependency graph for TimeTrack.cpp:

Go to the source code of this file.

Namespaces

namespace  anonymous_namespace{TimeTrack.cpp}
 

Macros

#define TIMETRACK_MIN   0.01
 
#define TIMETRACK_MAX   10.0
 

Functions

static const Track::TypeInfotypeInfo ()
 
double anonymous_namespace{TimeTrack.cpp}::GetRate (const Track &track)
 

Variables

static ProjectFileIORegistry::ObjectReaderEntry readerEntry
 
static Mixer::WarpOptions::DefaultWarp::Scope installer
 Installer of the time warper. More...
 

Macro Definition Documentation

◆ TIMETRACK_MAX

#define TIMETRACK_MAX   10.0

Definition at line 27 of file TimeTrack.cpp.

◆ TIMETRACK_MIN

#define TIMETRACK_MIN   0.01

Definition at line 26 of file TimeTrack.cpp.

Function Documentation

◆ typeInfo()

static const Track::TypeInfo & typeInfo ( )
static

Definition at line 120 of file TimeTrack.cpp.

121{
122 static const Track::TypeInfo info{
123 { "time", "time", XO("Time Track") }, true, &Track::ClassTypeInfo() };
124 return info;
125}
XO("Cut/Copy/Paste")
static const TypeInfo & ClassTypeInfo()
Definition: Track.cpp:790

References Track::ClassTypeInfo(), and XO().

Referenced by TimeTrack::ClassTypeInfo(), and TimeTrack::GetTypeInfo().

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

Variable Documentation

◆ installer

Initial value:
{
[](const AudacityProject *pProject) -> const BoundedEnvelope*
{
if (pProject) {
auto &list = TrackList::Get(*pProject);
if (auto pTimeTrack = *list.Any<const TimeTrack>().begin())
return pTimeTrack->GetEnvelope();
}
return nullptr;
} }
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
A kind of Track used to 'warp time'.
Definition: TimeTrack.h:24
static TrackList & Get(AudacityProject &project)
Definition: Track.cpp:314

Installer of the time warper.

Definition at line 361 of file TimeTrack.cpp.

◆ readerEntry

Initial value:
{
"timetrack",
}
static TimeTrack * New(AudacityProject &project)
Definition: TimeTrack.cpp:39

Definition at line 29 of file TimeTrack.cpp.