Audacity 3.2.0
|
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...
#include <SampleBlock.h>
Public Member Functions | |
virtual | ~SampleBlock () |
virtual void | CloseLock () noexcept=0 |
virtual SampleBlockID | GetBlockID () const =0 |
size_t | GetSamples (samplePtr dest, sampleFormat destformat, size_t sampleoffset, size_t numsamples, bool mayThrow=true) |
virtual BlockSampleView | GetFloatSampleView (bool mayThrow)=0 |
virtual sampleFormat | GetSampleFormat () const =0 |
virtual size_t | GetSampleCount () const =0 |
virtual bool | GetSummary256 (float *dest, size_t frameoffset, size_t numframes)=0 |
Non-throwing, should fill with zeroes on failure. More... | |
virtual bool | GetSummary64k (float *dest, size_t frameoffset, size_t numframes)=0 |
Non-throwing, should fill with zeroes on failure. More... | |
MinMaxRMS | GetMinMaxRMS (size_t start, size_t len, bool mayThrow=true) |
Gets extreme values for the specified region. More... | |
MinMaxRMS | GetMinMaxRMS (bool mayThrow=true) const |
Gets extreme values for the entire block. More... | |
virtual size_t | GetSpaceUsage () const =0 |
virtual void | SaveXML (XMLWriter &xmlFile)=0 |
Protected Member Functions | |
virtual size_t | DoGetSamples (samplePtr dest, sampleFormat destformat, size_t sampleoffset, size_t numsamples)=0 |
virtual MinMaxRMS | DoGetMinMaxRMS (size_t start, size_t len)=0 |
virtual MinMaxRMS | DoGetMinMaxRMS () const =0 |
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.
Definition at line 46 of file SampleBlock.h.
|
virtualdefault |
|
pure virtualnoexcept |
Implemented in SqliteSampleBlock, and MockSampleBlock.
|
protectedpure virtual |
Implemented in SqliteSampleBlock, and MockSampleBlock.
Referenced by GetMinMaxRMS().
|
protectedpure virtual |
Implemented in SqliteSampleBlock, and MockSampleBlock.
|
protectedpure virtual |
Implemented in SqliteSampleBlock, and MockSampleBlock.
Referenced by GetSamples().
|
pure virtual |
Implemented in SqliteSampleBlock, and MockSampleBlock.
|
pure virtual |
Implemented in SqliteSampleBlock, and MockSampleBlock.
MinMaxRMS SampleBlock::GetMinMaxRMS | ( | bool | mayThrow = true | ) | const |
Gets extreme values for the entire block.
Definition at line 96 of file SampleBlock.cpp.
References DoGetMinMaxRMS().
MinMaxRMS SampleBlock::GetMinMaxRMS | ( | size_t | start, |
size_t | len, | ||
bool | mayThrow = true |
||
) |
Gets extreme values for the specified region.
Definition at line 85 of file SampleBlock.cpp.
References DoGetMinMaxRMS().
|
pure virtual |
Implemented in SqliteSampleBlock, and MockSampleBlock.
|
pure virtual |
Implemented in SqliteSampleBlock, and MockSampleBlock.
size_t SampleBlock::GetSamples | ( | samplePtr | dest, |
sampleFormat | destformat, | ||
size_t | sampleoffset, | ||
size_t | numsamples, | ||
bool | mayThrow = true |
||
) |
Definition at line 71 of file SampleBlock.cpp.
References ClearSamples(), and DoGetSamples().
|
pure virtual |
Implemented in SqliteSampleBlock, and MockSampleBlock.
|
pure virtual |
Non-throwing, should fill with zeroes on failure.
Implemented in SqliteSampleBlock, and MockSampleBlock.
|
pure virtual |
Non-throwing, should fill with zeroes on failure.
Implemented in SqliteSampleBlock, and MockSampleBlock.
|
pure virtual |
Implemented in MockSampleBlock, and SqliteSampleBlock.