Class AudioScheduledSourceNode
- Namespace
- CSharpToJavaScript.APIs.JS
- Assembly
- CSharpToJavaScript.dll
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(Number) and Stop(Number) methods, as well as the AudioScheduledSourceNode.Ended event.
[Value("AudioScheduledSourceNode")]
public class AudioScheduledSourceNode : AudioNode
- Inheritance
-
AudioScheduledSourceNode
- Derived
- Inherited Members
Remarks
NOTE
You can't create an
AudioScheduledSourceNodeobject directly. Instead, use an interface which extends it, such as AudioBufferSourceNode, OscillatorNode or ConstantSourceNode.
Unless stated otherwise, nodes based upon AudioScheduledSourceNode output silence when not playing (that is, before start() is called and after stop() is called). Silence is represented, as always, by a stream of samples with the value zero (0).
Constructors
AudioScheduledSourceNode()
public AudioScheduledSourceNode()
Properties
Onended
[Value("onended")]
public EventHandlerNonNull Onended { get; set; }
Property Value
Methods
Start(Number)
The start() method on AudioScheduledSourceNode schedules a sound to begin playback at the specified time.
If no time is specified, then the sound begins playing immediately.
[Value("start")]
public GlobalObject.Undefined Start(Number when = null)
Parameters
whenNumber
Returns
Remarks
-Using the Web Audio API
-Stop(Number)
-AudioScheduledSourceNode
-AudioBufferSourceNode
-ConstantSourceNode
-OscillatorNode
Stop(Number)
The stop() method on AudioScheduledSourceNode schedules a
sound to cease playback at the specified time. If no time is specified, then the sound
stops playing immediately.
[Value("stop")]
public GlobalObject.Undefined Stop(Number when = null)
Parameters
whenNumber
Returns
Remarks
Each time you call stop() on the same node, the specified time replaces
any previously-scheduled stop time that hasn't occurred yet. If the node has already
stopped, this method has no effect.
NOTE
If a scheduled stop time occurs before the node's scheduled
start time, the node never starts to play.
-Using the Web Audio API
-Start(Number)
-AudioScheduledSourceNode
-AudioBufferSourceNode
-ConstantSourceNode
-OscillatorNode