mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-22 22:12:48 -05:00
21 lines
433 B
JavaScript
21 lines
433 B
JavaScript
|
const AudioNodeMock = require('./AudioNode');
|
||
|
const AudioParamMock = require('./AudioParam');
|
||
|
|
||
|
class AudioContextMock {
|
||
|
createGain () {
|
||
|
return new AudioNodeMock({
|
||
|
gain: new AudioParamMock({
|
||
|
default: 1,
|
||
|
min: -3,
|
||
|
max: 3
|
||
|
})
|
||
|
});
|
||
|
}
|
||
|
|
||
|
createChannelMerger () {
|
||
|
return new AudioNodeMock();
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = AudioContextMock;
|