Fix for mobile devices using deprecated noteOn.

This commit is contained in:
William Ferguson 2014-07-22 15:43:51 +01:00
parent 968baec89f
commit 1a783fbad5

View file

@ -113,7 +113,7 @@ function Scratch(project_id) {
var isource = runtime.audioContext.createBufferSource(); var isource = runtime.audioContext.createBufferSource();
isource.buffer = ibuffer; isource.buffer = ibuffer;
isource.connect(runtime.audioContext.destination); isource.connect(runtime.audioContext.destination);
isource.noteOn(0); isource.start();
iosAudioActive = true; iosAudioActive = true;
} }
}); });