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

Method GetCurrentUsage

libraries/lib-project-file-io/ProjectFileIO.cpp:2555–2570  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2553}
2554
2555int64_t ProjectFileIO::GetCurrentUsage(
2556 const std::vector<const TrackList*> &trackLists) const
2557{
2558 using namespace WaveTrackUtilities;
2559 unsigned long long current = 0;
2560 const auto fn = BlockSpaceUsageAccumulator(current);
2561
2562 // Must pass address of this set, even if not otherwise used, to avoid
2563 // possible multiple count of shared blocks
2564 SampleBlockIDSet seen;
2565 for (auto pTracks: trackLists)
2566 if (pTracks)
2567 InspectBlocks(*pTracks, fn, &seen);
2568
2569 return current;
2570}
2571
2572int64_t ProjectFileIO::GetTotalUsage()
2573{

Callers 1

CompactMethod · 0.80

Calls 1

Tested by

no test coverage detected