Inline function that converts a decibel value to an amplitude ratio value.
float XAudio2DecibelsToAmplitudeRatio(
float Decibels
)
Decibels
Type: floatĀ
Floating point value representing the decibel level.
Type: floatĀ
Returns a floating point value that represents the amplitude ratio.
This function can be used to calculate the Volume parameter value passed to the SetVolume function.
You must explicitly define XAUDIO2_HELPER_FUNCTIONS in your build for this function to become available.
Header: Declared in xaudio2.h.
Library: Use xaudio2.lib.