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

Function main

tests/client_comp_test.cpp:484–506  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

482} // namespace
483
484int main()
485{
486 std::printf("ClientComp DSP test harness (fs=%.0f Hz, block=%d)\n\n",
487 kSampleRate, kBlockSize);
488
489 testBypassDisabled();
490 testBelowThreshold();
491 testStaticRatio();
492 testLimitRatio();
493 testMakeupGain();
494 testLimiterCeiling();
495 testStereoLinked();
496 testAttackTiming();
497 testSoftKneeMonotonic();
498 testTransientSanity();
499 testResetClearsEnvelope();
500
501 std::printf("\n%s\n",
502 g_failed == 0
503 ? "All tests passed."
504 : (std::to_string(g_failed) + " test(s) failed.").c_str());
505 return g_failed == 0 ? 0 : 1;
506}

Callers

nothing calls this directly

Calls 11

testBypassDisabledFunction · 0.85
testBelowThresholdFunction · 0.85
testStaticRatioFunction · 0.85
testLimitRatioFunction · 0.85
testMakeupGainFunction · 0.85
testLimiterCeilingFunction · 0.85
testStereoLinkedFunction · 0.85
testSoftKneeMonotonicFunction · 0.85
testResetClearsEnvelopeFunction · 0.85
testAttackTimingFunction · 0.70
testTransientSanityFunction · 0.70

Tested by

no test coverage detected