47 bool HasProject()
const;
49 std::shared_ptr<const AudacityProject>
GetProject()
const;
51 bool HasSampleRate()
const;
53 double GetSampleRate(
double defaultSampleRate = 44100.0)
const;
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
A context in which formatter operates.
FormatterContext(const FormatterContext &)=default
FormatterContext()=default
std::optional< double > mProjectRate
FormatterContext(FormatterContext &&)=default
FormatterContext & operator=(FormatterContext &&)=default
std::weak_ptr< const AudacityProject > mProject
FormatterContext & operator=(const FormatterContext &)=default
constexpr auto sampleRate
const AudacityProject & GetProject(const Track &track)