| 2553 | } |
| 2554 | |
| 2555 | int64_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 | |
| 2572 | int64_t ProjectFileIO::GetTotalUsage() |
| 2573 | { |
no test coverage detected