Tone.js/Tone/shim/OscillatorNode.js

12 lines
333 B
JavaScript
Raw Normal View History

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