30 auto result =
DoCreate(src, numsamples, srcformat);
74 size_t numsamples,
bool mayThrow)
76 try{
return DoGetSamples(dest, destformat, sampleoffset, numsamples); }
86 size_t start,
size_t len,
bool mayThrow)
std::shared_ptr< SampleBlock > SampleBlockPtr
MessageBoxException for violation of preconditions or assertions.
#define THROW_INCONSISTENCY_EXCEPTION
Throw InconsistencyException, using C++ preprocessor to identify the source code location.
std::shared_ptr< SampleBlockFactory > SampleBlockFactoryPtr
std::vector< Attribute > AttributesList
The top-level handle to an Audacity project. It serves as a source of events that other objects can b...
static stored_type & Get()
Get the installed value.
CallbackReturn Publish(const SampleBlockCreateMessage &message)
Send a message to connected callbacks.
SampleBlockPtr CreateFromId(sampleFormat srcformat, SampleBlockID id)
virtual SampleBlockPtr DoCreateFromXML(sampleFormat srcformat, const AttributesList &attrs)=0
static SampleBlockFactoryPtr New(AudacityProject &project)
SampleBlockPtr CreateSilent(size_t numsamples, sampleFormat srcformat)
virtual ~SampleBlockFactory()
virtual SampleBlockPtr DoCreateSilent(size_t numsamples, sampleFormat srcformat)=0
SampleBlockPtr Create(constSamplePtr src, size_t numsamples, sampleFormat srcformat)
virtual SampleBlockPtr DoCreate(constSamplePtr src, size_t numsamples, sampleFormat srcformat)=0
SampleBlockPtr CreateFromXML(sampleFormat srcformat, const AttributesList &attrs)
virtual SampleBlockPtr DoCreateFromId(sampleFormat srcformat, SampleBlockID id)=0
MinMaxRMS GetMinMaxRMS(size_t start, size_t len, bool mayThrow=true)
Gets extreme values for the specified region.
virtual MinMaxRMS DoGetMinMaxRMS() const =0
size_t GetSamples(samplePtr dest, sampleFormat destformat, size_t sampleoffset, size_t numsamples, bool mayThrow=true)
virtual size_t DoGetSamples(samplePtr dest, sampleFormat destformat, size_t sampleoffset, size_t numsamples)=0