Audacity 3.2.0
ProjectRate.cpp File Reference
#include "ProjectRate.h"
#include "AudioIOBase.h"
#include "Prefs.h"
#include "Project.h"
#include "QualitySettings.h"
#include "XMLWriter.h"
#include "XMLAttributeValueView.h"
Include dependency graph for ProjectRate.cpp:

Go to the source code of this file.


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

Detailed Description

Audacity: A Digital Audio Editor

Paul Licameli split from ProjectSettings.cpp

Definition in file ProjectRate.cpp.

Variable Documentation

◆ entries

Initial value:
{ "rate", [](auto &settings, auto value){
double rate = value.Get(settings.GetRate());
settings.SetRate( rate );
} },
} }
static Settings & settings()
Definition: TrackInfo.cpp:87
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Definition: Project.h:90
Holds project sample rate.
Definition: ProjectRate.h:24
static ProjectRate & Get(AudacityProject &project)
Definition: ProjectRate.cpp:28

Definition at line 72 of file ProjectRate.cpp.

◆ entry

Initial value:
[](const AudacityProject &project, XMLWriter &xmlFile){
xmlFile.WriteAttr(wxT("rate"), ProjectRate::Get(project).GetRate());
double GetRate() const
Definition: ProjectRate.cpp:53
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
Definition: XMLWriter.h:25

Definition at line 66 of file ProjectRate.cpp.

◆ sKey

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

Definition at line 21 of file ProjectRate.cpp.

Referenced by ProjectRate::Get().