carb::audio::calculateGainFromLinearScale

Defined in carb/audio/AudioUtils.h

inline float carb::audio::calculateGainFromLinearScale(float linear)

Calculate a decibel gain value from a linear volume scale.

Parameters

linear[in] The linear float scale value to convert to a gain value.

Returns

The gain value that will produce a linear volume scale of linear.