MCPcopy Create free account
hub / github.com/audacity/audacity / GetSamples

Method GetSamples

libraries/lib-wave-track/SampleBlock.cpp:71–83  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

69SampleBlock::~SampleBlock() = default;
70
71size_t SampleBlock::GetSamples(samplePtr dest,
72 sampleFormat destformat,
73 size_t sampleoffset,
74 size_t numsamples, bool mayThrow)
75{
76 try{ return DoGetSamples(dest, destformat, sampleoffset, numsamples); }
77 catch( ... ) {
78 if( mayThrow )
79 throw;
80 ClearSamples( dest, destformat, 0, numsamples );
81 return 0;
82 }
83}
84
85 MinMaxRMS SampleBlock::GetMinMaxRMS(
86 size_t start, size_t len, bool mayThrow)

Callers

nothing calls this directly

Calls 1

ClearSamplesFunction · 0.85

Tested by

no test coverage detected