scratch-audio/test/__mocks__/AudioTarget.js

22 lines
377 B
JavaScript
Raw Normal View History

2018-06-07 22:17:05 -04:00
const AudioNodeMock = require('./AudioNode');
class AudioTargetMock {
constructor () {
this.inputNode = new AudioNodeMock();
}
connect (target) {
this.inputNode.connect(target.getInputNode());
}
getInputNode () {
return this.inputNode;
}
getSoundPlayers () {
return {};
}
}
module.exports = AudioTargetMock;