AudioContext.Suspend Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.