web-audio-api
Version:
Node.js implementation of Web audio API
22 lines (13 loc) • 416 B
JavaScript
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