Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
22
size_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
Process
Method · 0.85
GetCallback
Method · 0.85
GetRenderedCopy
Function · 0.85
Disjoin
Method · 0.85
GetEnvelopeValues
Method · 0.85
Resample
Method · 0.85
GetMinMax
Method · 0.85
GetRMS
Method · 0.85
GetFloatSampleView
Method · 0.85
Get
Method · 0.85
SetSamples
Method · 0.85
Delete
Method · 0.85
Calls
4
max
Function · 0.85
as_size_t
Method · 0.80
min
Function · 0.70
sampleCount
Function · 0.70
Tested by
4
Process
Method · 0.68
TestEnergy
Method · 0.68
TestSignChanges
Method · 0.68
TestDirectionChanges
Method · 0.68