MCPcopy Create free account
hub / github.com/audacity/audacity / DoCreate

Method DoCreate

libraries/lib-project-file-io/SqliteSampleBlock.cpp:217–225  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

215SqliteSampleBlockFactory::~SqliteSampleBlockFactory() = default;
216
217SampleBlockPtr SqliteSampleBlockFactory::DoCreate(
218 constSamplePtr src, size_t numsamples, sampleFormat srcformat )
219{
220 auto sb = std::make_shared<SqliteSampleBlock>(shared_from_this());
221 sb->SetSamples(src, numsamples, srcformat);
222 // block id has now been assigned
223 mAllBlocks[ sb->GetBlockID() ] = sb;
224 return sb;
225}
226
227auto SqliteSampleBlockFactory::GetActiveBlockIDs() -> SampleBlockIDs
228{

Callers

nothing calls this directly

Calls 2

SetSamplesMethod · 0.45
GetBlockIDMethod · 0.45

Tested by

no test coverage detected