Audacity 3.2.0
|
#include <MockSampleBlock.h>
Public Member Functions | |
MockSampleBlock (long long id, constSamplePtr src, size_t numsamples, sampleFormat srcformat) | |
void | CloseLock () noexcept override |
SampleBlockID | GetBlockID () const override |
sampleFormat | GetSampleFormat () const override |
size_t | GetSampleCount () const override |
bool | GetSummary256 (float *dest, size_t frameoffset, size_t numframes) override |
Non-throwing, should fill with zeroes on failure. More... | |
bool | GetSummary64k (float *dest, size_t frameoffset, size_t numframes) override |
Non-throwing, should fill with zeroes on failure. More... | |
size_t | GetSpaceUsage () const override |
void | SaveXML (XMLWriter &) override |
size_t | DoGetSamples (samplePtr dest, sampleFormat destformat, size_t sampleoffset, size_t numsamples) override |
MinMaxRMS | DoGetMinMaxRMS (size_t start, size_t len) override |
MinMaxRMS | DoGetMinMaxRMS () const override |
BlockSampleView | GetFloatSampleView (bool mayThrow) override |
Public Member Functions inherited from SampleBlock | |
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 |
Public Attributes | |
const long long | id |
const sampleFormat | srcFormat |
const std::vector< char > | data |
Additional Inherited Members | |
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 |
Audacity: A Digital Audio Editor
Matthieu Hodgkinson
Definition at line 15 of file MockSampleBlock.h.
MockSampleBlock::MockSampleBlock | ( | long long | id, |
constSamplePtr | src, | ||
size_t | numsamples, | ||
sampleFormat | srcformat | ||
) |
Definition at line 25 of file MockSampleBlock.cpp.
|
overridevirtualnoexcept |
|
overridevirtual |
Implements SampleBlock.
Definition at line 89 of file MockSampleBlock.cpp.
|
overridevirtual |
Implements SampleBlock.
Definition at line 84 of file MockSampleBlock.cpp.
|
overridevirtual |
Implements SampleBlock.
Definition at line 73 of file MockSampleBlock.cpp.
References staffpad::vo::copy(), data, SAMPLE_SIZE, and srcFormat.
|
overridevirtual |
|
overridevirtual |
Implements SampleBlock.
Definition at line 94 of file MockSampleBlock.cpp.
References data.
|
overridevirtual |
Implements SampleBlock.
Definition at line 47 of file MockSampleBlock.cpp.
References data, SAMPLE_SIZE, and srcFormat.
|
overridevirtual |
|
overridevirtual |
|
overridevirtual |
Non-throwing, should fill with zeroes on failure.
Implements SampleBlock.
Definition at line 52 of file MockSampleBlock.cpp.
|
overridevirtual |
Non-throwing, should fill with zeroes on failure.
Implements SampleBlock.
Definition at line 58 of file MockSampleBlock.cpp.
|
overridevirtual |
const std::vector<char> MockSampleBlock::data |
Definition at line 52 of file MockSampleBlock.h.
Referenced by DoGetSamples(), GetFloatSampleView(), GetSampleCount(), and GetSpaceUsage().
const long long MockSampleBlock::id |
Definition at line 50 of file MockSampleBlock.h.
Referenced by GetBlockID().
const sampleFormat MockSampleBlock::srcFormat |
Definition at line 51 of file MockSampleBlock.h.
Referenced by DoGetSamples(), GetSampleCount(), and GetSampleFormat().