Fix for mobile devices using deprecated noteOn.
This commit is contained in:
parent
968baec89f
commit
1a783fbad5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Reference in a new issue