mirror of
https://github.com/scratchfoundation/scratch-audio.git
synced 2024-12-23 14:32:35 -05:00
20 lines
433 B
JavaScript
20 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;
|