Skip to content

Commit 4e697be

Browse files
authored
Merge pull request #1764 from max0410/patch-1
Edited deprecated function
2 parents 9c4f736 + 0a14c3f commit 4e697be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/addons/p5.sound.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ sndcore = function () {
9797
if (typeof AudioContext.prototype.createDelay !== 'function')
9898
AudioContext.prototype.createDelay = AudioContext.prototype.createDelayNode;
9999
if (typeof AudioContext.prototype.createScriptProcessor !== 'function')
100-
AudioContext.prototype.createScriptProcessor = AudioContext.prototype.createJavaScriptNode;
100+
AudioContext.prototype.createScriptProcessor = AudioContext.prototype.createScriptProcessor;
101101
if (typeof AudioContext.prototype.createPeriodicWave !== 'function')
102102
AudioContext.prototype.createPeriodicWave = AudioContext.prototype.createWaveTable;
103103
AudioContext.prototype.internal_createGain = AudioContext.prototype.createGain;
@@ -9334,4 +9334,4 @@ src_app = function () {
93349334
var p5SOUND = sndcore;
93359335
return p5SOUND;
93369336
}(sndcore, master, helpers, errorHandler, panner, soundfile, amplitude, fft, signal, oscillator, env, pulse, noise, audioin, filter, delay, reverb, metro, looper, soundRecorder, peakdetect, gain, distortion);
9337-
}));
9337+
}));

0 commit comments

Comments
 (0)