UNPKG

web-audio-api

Version:
22 lines (13 loc) 416 B
var AudioNode = require('./AudioNode') , readOnlyAttr = require('./utils').readOnlyAttr class AudioDestinationNode extends AudioNode { constructor(context) { super(context, 1, 0, 2, 'explicit', 'speakers') readOnlyAttr(this, 'maxChannelCount', 2) } // This only pulls the data from the nodes upstream _tick() { return this._inputs[0]._tick() } } module.exports = AudioDestinationNode