Inline function that converts a semitone value to a frequency ratio value.
float XAudio2SemitonesToFrequencyRatio(
float Semitones
)
Semitones
Type: floatĀ
Floating point value representing the semitone value.
Type: floatĀ
Returns a floating point value that represents the frequency ratio.
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.
Header: Declared in xaudio2.h.
Library: Use xaudio2.lib.