Skip to content

Latest commit

 

History

History
96 lines (67 loc) · 4 KB

nf-xaudio2-ixaudio2voice-disableeffect.md

File metadata and controls

96 lines (67 loc) · 4 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:xaudio2.IXAudio2Voice.DisableEffect
IXAudio2Voice::DisableEffect (xaudio2.h)
Disables the effect at a given position in the effect chain of the voice.
DisableEffect
DisableEffect method [XAudio2 Audio Mixing APIs]
DisableEffect method [XAudio2 Audio Mixing APIs]
IXAudio2Voice interface
IXAudio2Voice interface [XAudio2 Audio Mixing APIs]
DisableEffect method
IXAudio2Voice.DisableEffect
IXAudio2Voice::DisableEffect
xaudio2.ixaudio2voice_interface_disableeffect
xaudio2/IXAudio2Voice::DisableEffect
xaudio2\ixaudio2voice_interface_disableeffect.htm
xaudio2
M:Microsoft.directx_sdk.ixaudio2voice.IXAudio2Voice.DisableEffect(UINT32,UINT32)
12/05/2018
DisableEffect, DisableEffect method [XAudio2 Audio Mixing APIs], DisableEffect method [XAudio2 Audio Mixing APIs],IXAudio2Voice interface, IXAudio2Voice interface [XAudio2 Audio Mixing APIs],DisableEffect method, IXAudio2Voice.DisableEffect, IXAudio2Voice::DisableEffect, xaudio2.ixaudio2voice_interface_disableeffect, xaudio2/IXAudio2Voice::DisableEffect
xaudio2.h
Windows
Windows
19H1
IXAudio2Voice::DisableEffect
xaudio2/IXAudio2Voice::DisableEffect
c++
APIRef
kbSyntax
COM
xaudio2.h
IXAudio2Voice.DisableEffect

IXAudio2Voice::DisableEffect

-description

Disables the effect at a given position in the effect chain of the voice.

-parameters

-param EffectIndex [in]

Zero-based index of an effect in the effect chain of the voice.

-param X2DEFAULT

TBD

-param OperationSet [in]

Identifies this call as part of a deferred batch. See the XAudio2 Operation Sets overview for more information.

-returns

Returns S_OK if successful; otherwise, an error code. See XAudio2 Error Codes for descriptions of valid error codes.

-remarks

The effects in a given XAudio2 voice's effect chain must consume and produce audio at that voice's processing sample rate. The only aspect of the audio format they can change is the channel count. For example a reverb effect can convert mono data to 5.1. The client can use the XAUDIO2_EFFECT_DESCRIPTOR structure's OutputChannels field to specify the number of channels it wants each effect to produce. Each effect in an effect chain must produce a number of channels that the next effect can consume. Any calls to IXAudio2Voice::EnableEffect or IXAudio2Voice::DisableEffect that would make the effect chain stop fulfilling these requirements will fail.

Disabling an effect immediately removes it from the processing graph. Any pending audio in the effect—such as a reverb tail—is not played. Be careful disabling an effect while the voice that hosts it is running. This can result in an audible artifact if the effect significantly changes the audio's pitch or volume.

DisableEffect takes effect immediately when called from an XAudio2 callback with an OperationSet of XAUDIO2_COMMIT_NOW.

Platform Requirements

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

-see-also

IXAudio2Voice

XAPO Overview