Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

IXAudio2SourceVoice::GetFrequencyRatio method

Returns the frequency adjustment ratio of the voice.

Syntax


void GetFrequencyRatio(
  [out] float *pRatio
);

Parameters

pRatio [out]

Returns the current frequency adjustment ratio if successful.

Return value

This method does not return a value.

Remarks

GetFrequencyRatio always returns the voice's actual current frequency ratio. However, this may not match the ratio set by the most recent IXAudio2SourceVoice::SetFrequencyRatio call: the actual ratio is only changed the next time the audio engine runs after the IXAudio2SourceVoice::SetFrequencyRatio call (or after the corresponding IXAudio2::CommitChanges call, if IXAudio2SourceVoice::SetFrequencyRatio was called with a deferred operation ID).

For information on frequency ratios, see IXAudio2SourceVoice::SetFrequencyRatio.

Platform Requirements

Windows 10 (XAudio2.9); Windows 8, Windows Phone 8 (XAudio 2.8); DirectX SDK (XAudio 2.7)

Requirements

Header

Xaudio2.h

See also

IXAudio2SourceVoice

 

 

Show:
© 2017 Microsoft