Audacity 3.2.0
Classes | Typedefs | Functions
SampleBlock.h File Reference
#include "GlobalVariable.h"
#include "SampleFormat.h"
#include <functional>
#include <memory>
#include <unordered_set>
#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  SampleBlock::DeletionCallback
 Type of function that is informed when a block is about to be deleted. More...
 
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 SampleBlockFactoryPtr = std::shared_ptr< SampleBlockFactory >
 
using SampleBlockID = long long
 

Functions

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

Typedef Documentation

◆ SampleBlockFactoryPtr

using SampleBlockFactoryPtr = std::shared_ptr<SampleBlockFactory>

Definition at line 28 of file SampleBlock.h.

◆ SampleBlockID

using SampleBlockID = long long

Definition at line 30 of file SampleBlock.h.

◆ SampleBlockPtr

using SampleBlockPtr = std::shared_ptr<SampleBlock>

Definition at line 26 of file SampleBlock.h.

Function Documentation

◆ BlockSpaceUsageAccumulator()

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

Definition at line 101 of file SampleBlock.h.

102{
103 return [&total]( const SampleBlock &block ){
104 total += block.GetSpaceUsage();
105 };
106};
Abstract class allows access to contents of a block of sound samples, serialization as XML,...
Definition: SampleBlock.h:44

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

Here is the caller graph for this function: