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

Function linToDb

src/core/ClientReverb.cpp:22–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20constexpr float kFixedGain = 0.015f;
21
22float linToDb(float lin) noexcept
23{
24 return (lin > 1e-9f) ? 20.0f * std::log10(lin) : -180.0f;
25}
26
27int scaleLenForRate(int refLen, double sampleRate)
28{

Callers 1

processMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected