mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-07 17:38:46 +00:00
3d1202043a
simplifies deep references to individual files
12 lines
353 B
JavaScript
12 lines
353 B
JavaScript
define(["../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;
|
|
}
|
|
}
|
|
|
|
});
|