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

Function rmsStereo

tests/client_comp_test.cpp:46–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44}
45
46float rmsStereo(const float* data, int frames)
47{
48 double sumSq = 0.0;
49 const int samples = frames * 2;
50 for (int i = 0; i < samples; ++i) {
51 sumSq += static_cast<double>(data[i]) * data[i];
52 }
53 return static_cast<float>(std::sqrt(sumSq / samples));
54}
55
56float peakAbsStereo(const float* data, int frames)
57{

Callers 4

testBypassDisabledFunction · 0.70
testBelowThresholdFunction · 0.70
testMakeupGainFunction · 0.70
testSoftKneeMonotonicFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected