Tone.js/Tone/shim/OscillatorNode.js

13 lines
353 B
JavaScript
Raw Normal View History

define(["../core/Tone"], function(Tone){
2017-10-26 03:00:37 +00:00
if (Tone.supported){
if (!OscillatorNode.prototype.setPeriodicWave){
OscillatorNode.prototype.setPeriodicWave = OscillatorNode.prototype.setWaveTable;
}
if (!AudioContext.prototype.createPeriodicWave){
AudioContext.prototype.createPeriodicWave = AudioContext.prototype.createWaveTable;
}
}
});