Update noteOn/noteOff references from old Web Audio API spec to start/stop to restore partial sound support
This commit is contained in:
parent
1b96a42b69
commit
b4b845fa0d
1 changed files with 2 additions and 2 deletions
|
@ -39,7 +39,7 @@ SoundPrims.prototype.addPrimsTo = function(primTable) {
|
|||
var playSound = function(snd) {
|
||||
if (snd.source) {
|
||||
// If this particular sound is already playing, stop it.
|
||||
snd.source.noteOff(0);
|
||||
snd.source.stop();
|
||||
snd.source = null;
|
||||
}
|
||||
|
||||
|
@ -62,7 +62,7 @@ var playSound = function(snd) {
|
|||
window.setTimeout(snd.source.finished, snd.buffer.duration * 1000);
|
||||
// Add the global list of playing sounds and start playing.
|
||||
runtime.audioPlaying.push(snd);
|
||||
snd.source.noteOn(0);
|
||||
snd.source.start();
|
||||
return snd.source;
|
||||
};
|
||||
|
||||
|
|
Reference in a new issue