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

Function ClearSamples

libraries/lib-math/SampleFormat.cpp:75–80  ·  view source on GitHub ↗

TODO: Risky? Assumes 0.0f is represented by 0x00000000;

Source from the content-addressed store, hash-verified

73
74// TODO: Risky? Assumes 0.0f is represented by 0x00000000;
75void ClearSamples(samplePtr dst, sampleFormat format,
76 size_t start, size_t len)
77{
78 auto size = SAMPLE_SIZE(format);
79 memset(dst + start*size, 0, len*size);
80}
81
82void ReverseSamples(samplePtr dst, sampleFormat format,
83 int start, int len)

Callers 8

GetOneMethod · 0.85
GetSamplesMethod · 0.85
GetMethod · 0.85
SetSamplesMethod · 0.85
DrainRecordBuffersMethod · 0.85
PutMethod · 0.85
ClearMethod · 0.85
GetFloatsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected