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

Function limitSampleBufferSize

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

Source from the content-addressed store, hash-verified

20}
21
22size_t limitSampleBufferSize( size_t bufferSize, sampleCount limit )
23{
24 return
25 std::min( sampleCount( bufferSize ), std::max( sampleCount(0), limit ) )
26 .as_size_t();
27}

Callers 15

ProcessMethod · 0.85
GetCallbackMethod · 0.85
GetRenderedCopyFunction · 0.85
DisjoinMethod · 0.85
GetEnvelopeValuesMethod · 0.85
ResampleMethod · 0.85
GetMinMaxMethod · 0.85
GetRMSMethod · 0.85
GetFloatSampleViewMethod · 0.85
GetMethod · 0.85
SetSamplesMethod · 0.85
DeleteMethod · 0.85

Calls 4

maxFunction · 0.85
as_size_tMethod · 0.80
minFunction · 0.70
sampleCountFunction · 0.70

Tested by 4

ProcessMethod · 0.68
TestEnergyMethod · 0.68
TestSignChangesMethod · 0.68
TestDirectionChangesMethod · 0.68