XAudio2DecibelsToAmplitudeRatio

Inline function that converts a decibel value to an amplitude ratio value.

Syntax

float XAudio2DecibelsToAmplitudeRatio(
         float Decibels
)  

Parameters

Decibels
Type: floatĀ 

Floating point value representing the decibel level.

Return value

Type: floatĀ 

Returns a floating point value that represents the amplitude ratio.

Remarks

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.

Requirements

Header: Declared in xaudio2.h.

Library: Use xaudio2.lib.