Skip to content

Commit 1a783fb

Browse files
author
William Ferguson
committed
Fix for mobile devices using deprecated noteOn.
1 parent 968baec commit 1a783fb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

js/Scratch.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ function Scratch(project_id) {
113113
var isource = runtime.audioContext.createBufferSource();
114114
isource.buffer = ibuffer;
115115
isource.connect(runtime.audioContext.destination);
116-
isource.noteOn(0);
116+
isource.start();
117117
iosAudioActive = true;
118118
}
119119
});

0 commit comments

Comments
 (0)