![]() |
Audacity 3.2.0
|
abstract base class with methods to produce SampleBlock objects More...
#include <SampleBlock.h>
Classes | |
struct | Factory |
Global factory of per-project factories of sample blocks. More... | |
Public Types | |
using | SampleBlockIDs = std::unordered_set< SampleBlockID > |
Public Member Functions | |
virtual | ~SampleBlockFactory () |
SampleBlockPtr | Create (constSamplePtr src, size_t numsamples, sampleFormat srcformat) |
SampleBlockPtr | CreateSilent (size_t numsamples, sampleFormat srcformat) |
SampleBlockPtr | CreateFromXML (sampleFormat srcformat, const AttributesList &attrs) |
virtual SampleBlockIDs | GetActiveBlockIDs ()=0 |
Static Public Member Functions | |
static SampleBlockFactoryPtr | New (AudacityProject &project) |
Protected Member Functions | |
virtual SampleBlockPtr | DoCreate (constSamplePtr src, size_t numsamples, sampleFormat srcformat)=0 |
virtual SampleBlockPtr | DoCreateSilent (size_t numsamples, sampleFormat srcformat)=0 |
virtual SampleBlockPtr | DoCreateFromXML (sampleFormat srcformat, const AttributesList &attrs)=0 |
abstract base class with methods to produce SampleBlock objects
Definition at line 109 of file SampleBlock.h.
using SampleBlockFactory::SampleBlockIDs = std::unordered_set<SampleBlockID> |
Definition at line 137 of file SampleBlock.h.
|
virtualdefault |
SampleBlockPtr SampleBlockFactory::Create | ( | constSamplePtr | src, |
size_t | numsamples, | ||
sampleFormat | srcformat | ||
) |
Definition at line 26 of file SampleBlock.cpp.
References DoCreate(), and THROW_INCONSISTENCY_EXCEPTION.
Referenced by anonymous_namespace{Sequence.cpp}::ShareOrCopySampleBlock().
SampleBlockPtr SampleBlockFactory::CreateFromXML | ( | sampleFormat | srcformat, |
const AttributesList & | attrs | ||
) |
Definition at line 46 of file SampleBlock.cpp.
References DoCreateFromXML(), and THROW_INCONSISTENCY_EXCEPTION.
SampleBlockPtr SampleBlockFactory::CreateSilent | ( | size_t | numsamples, |
sampleFormat | srcformat | ||
) |
Definition at line 36 of file SampleBlock.cpp.
References DoCreateSilent(), and THROW_INCONSISTENCY_EXCEPTION.
|
protectedpure virtual |
Implemented in SqliteSampleBlockFactory.
Referenced by Create().
|
protectedpure virtual |
Implemented in SqliteSampleBlockFactory.
Referenced by CreateFromXML().
|
protectedpure virtual |
Implemented in SqliteSampleBlockFactory.
Referenced by CreateSilent().
|
pure virtual |
Implemented in SqliteSampleBlockFactory.
|
static |
Definition at line 16 of file SampleBlock.cpp.
References cloud::factory, GlobalVariable< Factory, const std::function< SampleBlockFactoryPtr(AudacityProject &) >, Options... >::Get(), and THROW_INCONSISTENCY_EXCEPTION.
Referenced by BenchmarkDialog::OnRun().