ConstantSourceNode

Overview

The ConstantSourceNode interface—part of the Web Audio API—represents an audio source (based upon AudioScheduledSourceNode) whose output is single unchanging value. This makes it useful for cases in which you need a constant value coming in from an audio source. In addition, it can be used like a constructible AudioParam by automating the value of its offset or by connecting another node to it; see Controlling multiple parameters with ConstantSourceNode.

Location

Properties


offset

 

property offset: AudioParam read write;

 

AudioParam offset { get; set; }

 

var offset: AudioParam { get{} set{} }

 

AudioParam offset { __get; __set; }

 

Property offset() As AudioParam

onended

 

property onended: EventListener read write;

 

EventListener onended { get; set; }

 

var onended: EventListener { get{} set{} }

 

EventListener onended { __get; __set; }

 

Property onended() As EventListener

Required Methods


start

Schedules a sound to playback at an exact time.

 

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 a sound to stop playback at an exact time.

 

method stop(parwhen: dynamic)

 

void stop(dynamic parwhen)

 

func stop(_ parwhen: dynamic)

 

void stop(dynamic parwhen)

 

Sub stop(parwhen As dynamic)

Parameters:

  • parwhen: