XAudio2AmplitudeRatioToDecibels

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

Syntax

float XAudio2AmplitudeRatioToDecibels(
         float Volume
)  

Parameters

Volume
Type: floatĀ 

Floating point value representing the amplitude ratio.

Return value

Type: floatĀ 

Returns a floating point value that represents the decibel value.

Remarks

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.