Audacity  3.0.3
Classes | Namespaces | Functions | Variables
ProjectRate.cpp File Reference
#include "ProjectRate.h"
#include "AudioIOBase.h"
#include "Prefs.h"
#include "Project.h"
#include "QualitySettings.h"
#include "XMLWriter.h"
Include dependency graph for ProjectRate.cpp:

Go to the source code of this file.

Classes

struct  anonymous_namespace{ProjectRate.cpp}::MyEvent
 

Namespaces

 anonymous_namespace{ProjectRate.cpp}
 

Functions

 wxDEFINE_EVENT (EVT_PROJECT_RATE_CHANGE, wxEvent)
 
void anonymous_namespace{ProjectRate.cpp}::Notify (AudacityProject &project)
 

Variables

static const AudacityProject::AttachedObjects::RegisteredFactory sKey
 
static ProjectFileIORegistry::WriterEntry entry
 
static ProjectFileIORegistry::AttributeReaderEntries entries
 

Detailed Description


Audacity: A Digital Audio Editor

Paul Licameli split from ProjectSettings.cpp

Definition in file ProjectRate.cpp.

Function Documentation

◆ wxDEFINE_EVENT()

wxDEFINE_EVENT ( EVT_PROJECT_RATE_CHANGE  ,
wxEvent   
)

Variable Documentation

◆ entries

Initial value:
{
{ L"rate", [](auto &settings, auto value){
double rate;
settings.SetRate( rate );
} },
} }

Definition at line 87 of file ProjectRate.cpp.

◆ entry

Initial value:
{
[](const AudacityProject &project, XMLWriter &xmlFile){
xmlFile.WriteAttr(wxT("rate"), ProjectRate::Get(project).GetRate());
}
}

Definition at line 81 of file ProjectRate.cpp.

◆ sKey

Initial value:
{
[]( AudacityProject &project ){
auto result = std::make_shared< ProjectRate >(project);
return result;
}
}

Definition at line 35 of file ProjectRate.cpp.

Referenced by AdornedRulerPanel::Destroy(), TrackPanel::Destroy(), ProjectRate::Get(), AdornedRulerPanel::Get(), and TrackPanel::Get().

XMLWriter
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
Definition: XMLWriter.h:23
ProjectRate::Get
static ProjectRate & Get(AudacityProject &project)
Definition: ProjectRate.cpp:42
ProjectRate
Holds project sample rate.
Definition: ProjectRate.h:27
ProjectRate::GetRate
double GetRate() const
Definition: ProjectRate.cpp:68
AudacityProject
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:92
settings
static Settings & settings()
Definition: TrackInfo.cpp:86
Internat::CompatibleToDouble
static bool CompatibleToDouble(const wxString &stringToConvert, double *result)
Convert a string to a number.
Definition: Internat.cpp:134