AudioScheduledSourceNode Class

The base of the source nodes that are started and stopped at times of the context (https://webaudio.github.io/web-audio-api/#AudioScheduledSourceNode): they output silence before they start and after they stop, and fire ended when they stop.

public abstract class AudioScheduledSourceNode : AudioNode
Inheritance
AudioNode AudioScheduledSourceNode

Properties

NameDescription
OnEndedGets or sets the event handler of the ended event.

Gets or sets the event handler of the ended event.

public Action<Event>? OnEnded { get; set; }

Methods

NameDescription
Start(double)Schedules the start of the playback at a time.
Stop(double)Schedules the end of the playback at a time.

Schedules the start of the playback at a time.

public void Start(double when = 0d)

Parameters

when double

Exceptions

DomException
The source was already started (an InvalidStateError).

See also

Schedules the end of the playback at a time.

public void Stop(double when = 0d)

Parameters

when double

Exceptions

DomException
The source was not started (an InvalidStateError).

See also