mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 16:48:00 +00:00
5027277360
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;
|
|
}
|
|
}
|
|
|
|
});
|