XAudio2FrequencyRatioToSemitones

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

Syntax

float XAudio2FrequencyRatioToSemitones(
         float FrequencyRatio
)  

Parameters

FrequencyRatio
Type: floatĀ 

Floating point value representing the frequency ratio.

Return value

Type: floatĀ 

Returns a floating point value that represents the semitone.

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.