AudioScheduledSourceNode

Overview

The AudioScheduledSourceNode interface—part of the Web Audio API—is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times. Specifically, this interface defines the start() and stop() methods, as well as the onended event handler.

Location


Required Methods


start

Schedules the node to begin playing the constant sound at the specified time. If no time is specified, the node begins playing immediately.

 

method start(parwhen: dynamic; paroffset: dynamic; parduration: dynamic)

 

void start(dynamic parwhen, dynamic paroffset, dynamic parduration)

 

func start(_ parwhen: dynamic, _ paroffset: dynamic, _ parduration: dynamic)

 

void start(dynamic parwhen, dynamic paroffset, dynamic parduration)

 

Sub start(parwhen As dynamic, paroffset As dynamic, parduration As dynamic)

Parameters:

  • parwhen:
  • paroffset:
  • parduration:

stop

Schedules the node to stop playing at the specified time. If no time is specified, the node stops playing at once.

 

method stop(parwhen: dynamic)

 

void stop(dynamic parwhen)

 

func stop(_ parwhen: dynamic)

 

void stop(dynamic parwhen)

 

Sub stop(parwhen As dynamic)

Parameters:

  • parwhen: