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

Method as_size_t

libraries/lib-math/SampleCount.cpp:16–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

14#include <wx/debug.h>
15
16size_t sampleCount::as_size_t() const {
17 assert(value >= 0);
18 assert(static_cast<std::make_unsigned_t<type>>(value) <= std::numeric_limits<size_t>::max());
19 return value;
20}
21
22size_t limitSampleBufferSize( size_t bufferSize, sampleCount limit )
23{

Callers 15

CurrentQueueSizeMethod · 0.80
GetCallbackMethod · 0.80
SetFloatsFromTimeMethod · 0.80
GetOneMethod · 0.80
GetSampleViewMethod · 0.80
SetMethod · 0.80
GetEnvelopeValuesMethod · 0.80
GetSampleViewMethod · 0.80
GetMinMaxMethod · 0.80
GetRMSMethod · 0.80
CopyMethod · 0.80
PasteMethod · 0.80

Calls 1

maxFunction · 0.85

Tested by 5

CurrentQueueSizeMethod · 0.64
GetAudioMethod · 0.64
GetSampleViewMethod · 0.64
CalculateOneSpectrumMethod · 0.64