From b9f47cc7e7fb1a4f275af65f7930a51c9695f12d Mon Sep 17 00:00:00 2001 From: Jake Puffer Date: Thu, 17 Jul 2014 17:33:35 -0700 Subject: [PATCH] update method name to start webkit sounds Chrome v.36 no longer supports the `noteOn` method, so replace it with the newer `start` method. See following reference: https://code.google.com/p/chromium/issues/detail?id=358398 https://developer.mozilla.org/en-US/docs/Web/API/Web_Audio_API/Porting_w ebkitAudioContext_code_to_standards_based_AudioContext#Changes_to_method s_used_to_start.2Fstop_AudioBufferSourceNode_and_OscillatorNode --- lowLag.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lowLag.js b/lowLag.js index f056971..dda720d 100644 --- a/lowLag.js +++ b/lowLag.js @@ -188,7 +188,7 @@ lowLag.msg('webkitAudio loading '+url+' as tag ' + tag); var source = context.createBufferSource(); // creates a sound source source.buffer = buffer; // tell the source which sound to play source.connect(context.destination); // connect the source to the context's destination (the speakers) - source.noteOn(0); // play the source now + source.start(0); // play the source now }