disconnect
Summary
Disconnects an AudioNode from another that it is already connected to.
Method of apis/webaudio/AudioNodeapis/webaudio/AudioNode
Syntax
var = AudioNode.disconnect(output);
Parameters
output
- Data-type
- unsigned long
(Optional)
An index describing which output of the AudioNode to disconnect. An out-of-bound value throws an exception.
Return Value
Returns an object of type
Examples
oscillator.connect(audioCtx.destination);
oscillator.disconnect();
Related specifications
- W3C Web Audio API
- W3C Editor’s Draft