AudioEffect.SetState(AudioEffectState) Method

Definition

Sets the current state of the audio effect.

public:
 virtual void SetState(AudioEffectState newState) = SetState;
void SetState(AudioEffectState const& newState);
public void SetState(AudioEffectState newState);
function setState(newState)
Public Sub SetState (newState As AudioEffectState)

Parameters

newState
AudioEffectState

A value from the AudioEffectState enumeration specifying the new state of the audio effect.

Windows requirements

Device family
Windows 11, version 24H2 (introduced in 10.0.26100.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v19.0)

Remarks

You should call CanSetState to confirm that the audio effect supports setting state before calling this method.

Applies to