carb::audio::calculateLinearScaleFromGain

Defined in carb/audio/AudioUtils.h

inline float carb::audio::calculateLinearScaleFromGain(float gain)

Calculate the linear volume scale from a decibel gain level.

Parameters

gain[in] The gain value to be converted to a linear scale. This parameter should be a fairly small number; for example, -186.64 is approximately the decibel gain level of the noise floor for 32 bit audio.

Returns

The linear volume scale produced by gain gain.