23 auto result = std::make_shared< ProjectRate >(
project);
75 {
"rate", [](
auto &
settings,
auto value){
audacity::BasicSettings * gPrefs
static const AudacityProject::AttachedObjects::RegisteredFactory sKey
static ProjectFileIORegistry::AttributeWriterEntry entry
static ProjectFileIORegistry::AttributeReaderEntries entries
an object holding per-project preferred sample rate
static Settings & settings()
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
Client code makes static instance from a factory of attachments; passes it to Get or Find as a retrie...
CallbackReturn Publish(const double &message)
Send a message to connected callbacks.
Holds project sample rate.
ProjectRate(AudacityProject &project)
static ProjectRate & Get(AudacityProject &project)
void SetRate(double rate)
bool Write(const T &value)
Write value to config and return true if successful.
bool Read(T *pVar) const
overload of Read returning a boolean that is true if the value was previously defined */
Base class for XMLFileWriter and XMLStringWriter that provides the general functionality for creating...
virtual bool Flush() noexcept=0
PROJECT_RATE_API IntSetting DefaultSampleRate
Typically statically constructed.