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

Function linearToDb

src/gui/ClientEqOutputFader.cpp:23–27  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21namespace {
22
23float linearToDb(float linear)
24{
25 if (linear <= 1e-6f) return -120.0f;
26 return 20.0f * std::log10(linear);
27}
28
29float dbToLinear(float db)
30{

Callers 5

eventFilterMethod · 0.70
setPeakLinearMethod · 0.70
refreshValueLabelMethod · 0.70
paintEventMethod · 0.70
wheelEventMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected