Audacity 3.2.0
Classes | Typedefs | Functions
SampleBlock.h File Reference
#include "GlobalVariable.h"
#include "SampleFormat.h"
#include "AudioSegmentSampleView.h"
#include <functional>
#include <memory>
#include <unordered_set>
#include "Observer.h"
#include "XMLTagHandler.h"
Include dependency graph for SampleBlock.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  MinMaxRMS
 
class  SampleBlock
 Abstract class allows access to contents of a block of sound samples, serialization as XML, and reference count management that can suppress reclamation of its storage. More...
 
struct  SampleBlockCreateMessage
 
class  SampleBlockFactory
 abstract base class with methods to produce SampleBlock objects More...
 
struct  SampleBlockFactory::Factory
 Global factory of per-project factories of sample blocks. More...
 

Typedefs

using SampleBlockPtr = std::shared_ptr< SampleBlock >
 
using SampleBlockConstPtr = std::shared_ptr< const SampleBlock >
 
using SampleBlockFactoryPtr = std::shared_ptr< SampleBlockFactory >
 
using SampleBlockID = long long
 

Functions

std::function< void(SampleBlockConstPtr) > BlockSpaceUsageAccumulator (unsigned long long &total)
 

Typedef Documentation

◆ SampleBlockConstPtr

using SampleBlockConstPtr = std::shared_ptr<const SampleBlock>

Definition at line 29 of file SampleBlock.h.

◆ SampleBlockFactoryPtr

using SampleBlockFactoryPtr = std::shared_ptr<SampleBlockFactory>

Definition at line 31 of file SampleBlock.h.

◆ SampleBlockID

using SampleBlockID = long long

Definition at line 33 of file SampleBlock.h.

◆ SampleBlockPtr

using SampleBlockPtr = std::shared_ptr<SampleBlock>

Definition at line 28 of file SampleBlock.h.

Function Documentation

◆ BlockSpaceUsageAccumulator()

std::function< void(SampleBlockConstPtr) > BlockSpaceUsageAccumulator ( unsigned long long &  total)
inline

Definition at line 105 of file SampleBlock.h.

106{
107 return [&total](SampleBlockConstPtr pBlock){
108 total += pBlock->GetSpaceUsage();
109 };
110};
std::shared_ptr< const SampleBlock > SampleBlockConstPtr
Definition: SampleBlock.h:29

Referenced by anonymous_namespace{HistoryWindow.cpp}::SpaceUsageCalculator::CalculateUsage(), ProjectFileIO::GetCurrentUsage(), and ProjectFileIO::ShouldCompact().

Here is the caller graph for this function: