From 1a783fbad5b281e656faf1e9aa9cde74127b53dc Mon Sep 17 00:00:00 2001
From: William Ferguson <wferguson@scottlogic.com>
Date: Tue, 22 Jul 2014 15:43:51 +0100
Subject: [PATCH] Fix for mobile devices using deprecated noteOn.

---
 js/Scratch.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/js/Scratch.js b/js/Scratch.js
index 653796f..1f6cbd9 100644
--- a/js/Scratch.js
+++ b/js/Scratch.js
@@ -113,7 +113,7 @@ function Scratch(project_id) {
             var isource = runtime.audioContext.createBufferSource();
             isource.buffer = ibuffer;
             isource.connect(runtime.audioContext.destination);
-            isource.noteOn(0);
+            isource.start();
             iosAudioActive = true;
         }
     });