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.


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...
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...


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


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

Typedef Documentation

◆ SampleBlockFactoryPtr

using SampleBlockFactoryPtr = std::shared_ptr<SampleBlockFactory>

Definition at line 30 of file SampleBlock.h.

◆ SampleBlockID

using SampleBlockID = long long

Definition at line 32 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(const SampleBlock &) > BlockSpaceUsageAccumulator ( unsigned long long &  total)

Definition at line 105 of file SampleBlock.h.

107 return [&total]( const SampleBlock &block ){
108 total += block.GetSpaceUsage();
109 };
Abstract class allows access to contents of a block of sound samples, serialization as XML,...
Definition: SampleBlock.h:46

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

Here is the caller graph for this function: