Firefox Tomorrow

web api instance method

BaseAudioContext: createConstantSource() method

View on MDN ↗

The createConstantSource() property of the BaseAudioContext interface creates a ConstantSourceNode object, which is an audio source that continuously outputs a monaural (one-channel) sound signal whose samples all have the same value.

[!NOTE] The ConstantSourceNode() constructor is the recommended way to create a ConstantSourceNode; see Creating an AudioNode.

Syntax

createConstantSource()

Parameters

None.

Return value

A ConstantSourceNode instance.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.