AudioContext.createConstantSource()

The createConstantSource() method of the AudioContext Interface creates a new ConstantSourceNode, representing a monaural (1-channel) audio source which generates a constant series of samples whose values are all the same.

Syntax

var constantSource = AudioContext.createConstantSource();

Returns

A ConstantSourceNode representing an audio source that generates an audio signal whose samples all have the same value.

Example

tbd

Specifications

Specification Status Comment
Web Audio API
The definition of 'createBufferSource()' in that specification.
Working Draft  

Browser compatibility

25.0 (25.0) 
Feature Chrome Edge Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 10.0webkit (Yes) No support 15.0webkit
22 (unprefixed)
6.0webkit
Feature Android Edge Firefox Mobile (Gecko) Firefox OS IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support ? (Yes) 26.0 1.2 ? ? ? 33.0

See also

Document Tags and Contributors

 Contributors to this page: Sheppy
 Last updated by: Sheppy,