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