This page is Ready to Use

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

connect

Summary

Connects one AudioNode to another AudioNode.

Method of apis/webaudio/AudioNodeapis/webaudio/AudioNode

Syntax

var  = AudioNode.connect(destination, output, input);

Parameters

destination

Data-type
unsigned long

(Optional)

The AudioNode to connect to.

output

Data-type
unsigned long

(Optional)

An index describing which output of the AudioNode to connect from. An out-of-bound value throws an exception.

input

Data-type
unsigned long

(Optional)

An index describing which input of the destination AudioNode to connect to. An out-of-bound value throws an exception.

Return Value

Returns an object of type

Examples

var oscillator = audioCtx.createOscillator();
oscillator.connect(audioCtx.destination,1,1);

Related specifications

W3C Web Audio API
W3C Editor’s Draft