mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-04 07:58:43 +00:00
ed71d8141b
no longer using AMD (require.js) style imports, and beginning to move to es6 "import/export" statements everywhere.
11 lines
333 B
JavaScript
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;
|
|
}
|
|
}
|
|
|