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

Method GetActiveBlockIDs

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

Source from the content-addressed store, hash-verified

225}
226
227auto SqliteSampleBlockFactory::GetActiveBlockIDs() -> SampleBlockIDs
228{
229 SampleBlockIDs result;
230 for (auto end = mAllBlocks.end(), it = mAllBlocks.begin(); it != end;) {
231 if (it->second.expired())
232 // Tighten up the map
233 it = mAllBlocks.erase(it);
234 else {
235 result.insert( it->first );
236 ++it;
237 }
238 }
239 return result;
240}
241
242SampleBlockPtr SqliteSampleBlockFactory::DoCreateSilent(
243 size_t numsamples, sampleFormat )

Callers 1

LoadProjectMethod · 0.45

Calls 3

endMethod · 0.45
beginMethod · 0.45
insertMethod · 0.45

Tested by

no test coverage detected