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

Function testAfterEqAndScMicDoNotAffectCompression

tests/meter_model_test.cpp:163–176  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

161}
162
163void testAfterEqAndScMicDoNotAffectCompression()
164{
165 MeterModel model;
166 model.defineMeter(slcMeter(10, 0));
167 model.defineMeter(txMeter(22, "SC_MIC", "dBFS"));
168 model.defineMeter(txMeter(27, "AFTEREQ", "dBFS"));
169 model.defineMeter(txMeter(28, "COMPPEAK"));
170 model.setActiveTxSlice(0);
171
172 model.updateValues({22, 27, 28}, {rawDb(-80.0f), rawDb(-40.0f), rawDb(7.0f)});
173
174 report("AFTEREQ and SC_MIC do not derive or override direct COMPPEAK",
175 model.hasCompressionMeterValue() && nearlyEqual(model.compPeak(), 7.0f));
176}
177
178void testRemovingCompPeakMarksCompressionUnavailable()
179{

Callers 1

mainFunction · 0.85

Calls 10

slcMeterFunction · 0.85
txMeterFunction · 0.85
rawDbFunction · 0.85
defineMeterMethod · 0.80
setActiveTxSliceMethod · 0.80
updateValuesMethod · 0.80
compPeakMethod · 0.80
reportFunction · 0.70
nearlyEqualFunction · 0.70

Tested by

no test coverage detected