mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-23 06:22:54 -05:00
21 lines
377 B
JavaScript
21 lines
377 B
JavaScript
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;
|