@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.
| 270 | //! @param amp Linear amplitude, where 1.0 = 0dBFS. ** Must be larger than zero! ** |
| 271 | //! @return Amplitude in dBFS. |
| 272 | static 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 |