Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register todayThis browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
Inline function that converts from filter cutoff frequencies expressed in hertz to the filter coefficients used with the Frequency member of the XAUDIO2_FILTER_PARAMETERS structure.
This function applies to LowPassOnePoleFilter and HighPassOnePole filter types only, use XAudio2CutoffFrequencyToRadians for state-variable filter types.
float XAudio2CutoffFrequencyToOnePoleCoefficient(
float CutoffFrequency,
UINT32 SampleRate
);
CutoffFrequency
The cutoff frequency in hertz. Frequencies greater than SampleRate are clamped to XAUDIO2_MAX_FILTER_FREQUENCY.
SampleRate
The sample rate of the audio data affected by the XAUDIO2_FILTER_PARAMETERS structure.
Returns a filter coefficient for use in the XAUDIO2_FILTER_PARAMETERS structure.
You must explicitly define XAUDIO2_HELPER_FUNCTIONS in your build for this function to become available.
The DirectX SDK versions of XAUDIO2 do not support one-pole filters, so this function is not present in those releases.
Windows 10 (XAudio2.9); Windows 8, Windows Phone 8 (XAudio 2.8); DirectX SDK (XAudio 2.7)Requirement | Value |
---|---|
Target Platform | Windows |
Header | xaudio2.h |
Events
May 19, 6 PM - May 23, 12 AM
Calling all developers, creators, and AI innovators to join us in Seattle @Microsoft Build May 19-22.
Register today