MCPcopy Create free account
hub / github.com/aethersdr/AetherSDR / peakAbsStereo

Function peakAbsStereo

tests/client_comp_test.cpp:56–64  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

54}
55
56float peakAbsStereo(const float* data, int frames)
57{
58 float peak = 0.0f;
59 const int samples = frames * 2;
60 for (int i = 0; i < samples; ++i) {
61 peak = std::max(peak, std::fabs(data[i]));
62 }
63 return peak;
64}
65
66void processBlocks(ClientComp& comp, float* buf, int frames)
67{

Callers 4

testStaticRatioFunction · 0.70
testLimitRatioFunction · 0.70
testLimiterCeilingFunction · 0.70
testTransientSanityFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected