Language
Edit

AudioContext.Suspend Method

Definition

Suspends processing of audio events.

public void Suspend();
member this.Suspend : unit -> unit

Exceptions

Occurs when this function is called after the AudioContext had been disposed.

Remarks

To avoid audio artifacts when calling this function, set audio gain to zero before suspending an AudioContext.

In some implementations, it can be faster to suspend processing before changing AudioContext state.

In some implementations this function may have no effect.

Applies to

See also