Tone.js/Tone/shim/OscillatorNode.js
tambien ed71d8141b amd to es6 import/export
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
2019-01-27 13:05:20 -05:00

11 lines
333 B
JavaScript

import Tone from "../core/Tone";
if (Tone.supported){
if (!OscillatorNode.prototype.setPeriodicWave){
OscillatorNode.prototype.setPeriodicWave = OscillatorNode.prototype.setWaveTable;
}
if (!AudioContext.prototype.createPeriodicWave){
AudioContext.prototype.createPeriodicWave = AudioContext.prototype.createWaveTable;
}
}