XAudio2SemitonesToFrequencyRatio

Inline function that converts a semitone value to a frequency ratio value.

Syntax

float XAudio2SemitonesToFrequencyRatio(
         float Semitones
)  

Parameters

Semitones
Type: floatĀ 

Floating point value representing the semitone value.

Return value

Type: floatĀ 

Returns a floating point value that represents the frequency ratio.

Remarks

XAudio2SemitonesToFrequencyRatio can be used to calculate the Ratio parameter value passed to the function IXAudio2SourceVoice::SetFrequencyRatio.

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.