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

Function testReset

tests/client_deess_test.cpp:286–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286void testReset()
287{
288 ClientDeEss d;
289 d.prepare(kSampleRate);
290 d.setEnabled(true);
291 d.setFrequencyHz(6000.0f);
292 d.setThresholdDb(-40.0f);
293 d.setAmountDb(-8.0f);
294
295 const float amp = dbToLin(-6.0f);
296 auto buf = makeTone(6000.0, 4800, amp);
297 processBlocks(d, buf.data(), 4800);
298
299 d.reset();
300
301 std::vector<float> sil(1024, 0.0f);
302 d.process(sil.data(), 512, 2);
303 report("reset: no NaN/Inf after flush + silence",
304 !anyNaNorInf(sil.data(), 512));
305}
306
307} // namespace
308

Callers 1

mainFunction · 0.70

Calls 13

setAmountDbMethod · 0.80
dbToLinFunction · 0.70
makeToneFunction · 0.70
processBlocksFunction · 0.70
reportFunction · 0.70
anyNaNorInfFunction · 0.70
prepareMethod · 0.45
setEnabledMethod · 0.45
setFrequencyHzMethod · 0.45
setThresholdDbMethod · 0.45
dataMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected