Tone.js/Tone/shim/OscillatorNode.js
2017-10-25 23:00:37 -04:00

12 lines
355 B
JavaScript

define(["Tone/core/Tone"], function(Tone){
if (Tone.supported){
if (!OscillatorNode.prototype.setPeriodicWave){
OscillatorNode.prototype.setPeriodicWave = OscillatorNode.prototype.setWaveTable;
}
if (!AudioContext.prototype.createPeriodicWave){
AudioContext.prototype.createPeriodicWave = AudioContext.prototype.createWaveTable;
}
}
});