MCPcopy Create free account
hub / github.com/LMMS/lmms / ampToDbfs

Function ampToDbfs

include/lmms_math.h:272–275  ·  view source on GitHub ↗

@brief Converts linear amplitude (>0-1.0) to dBFS scale. @param amp Linear amplitude, where 1.0 = 0dBFS. ** Must be larger than zero! @return Amplitude in dBFS.

Source from the content-addressed store, hash-verified

270//! @param amp Linear amplitude, where 1.0 = 0dBFS. ** Must be larger than zero! **
271//! @return Amplitude in dBFS.
272static inline float ampToDbfs( float amp )
273{
274 return log10f( amp ) * 20.0f;
275}
276
277
278//! @brief Converts dBFS-scale to linear amplitude with 0dBFS = 1.0

Callers 1

paintDBFSLevelsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected