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

Function peakAbsStereo

tests/client_gate_test.cpp:51–59  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51float peakAbsStereo(const float* data, int frames)
52{
53 float peak = 0.0f;
54 const int samples = frames * 2;
55 for (int i = 0; i < samples; ++i) {
56 peak = std::max(peak, std::fabs(data[i]));
57 }
58 return peak;
59}
60
61void processBlocks(ClientGate& gate, float* buf, int frames)
62{

Callers 4

testGateClampsToRangeFunction · 0.70
testTransientSanityFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected