mirror of
https://github.com/DPS2004/gba.git
synced 2025-01-22 20:40:32 -03:00
update
This commit is contained in:
parent
ccc1a8200f
commit
5e48af37de
1 changed files with 12 additions and 10 deletions
|
@ -202,7 +202,8 @@ XAudioServer.prototype.initializeWebAudio = function () {
|
|||
}
|
||||
var parentObj = this;
|
||||
XAudioJSWebAudioWatchDogTimer = setInterval(function () {
|
||||
if(typeof XAudioJSWebAudioContextHandle.state != "undefined" && XAudioJSWebAudioContextHandle.state === 'suspended') {
|
||||
if(typeof XAudioJSWebAudioContextHandle.state != "undefined") {
|
||||
if (XAudioJSWebAudioContextHandle.state === 'suspended') {
|
||||
XAudioJSWebAudioWatchDogLast = (new Date()).getTime();
|
||||
try {
|
||||
XAudioJSWebAudioContextHandle.resume();
|
||||
|
@ -215,6 +216,7 @@ XAudioServer.prototype.initializeWebAudio = function () {
|
|||
parentObj.initializeWebAudio();
|
||||
}
|
||||
}
|
||||
}
|
||||
}, 500);
|
||||
}
|
||||
if (this.userEventLatch && typeof XAudioJSWebAudioContextHandle.state != "undefined") {
|
||||
|
|
Loading…
Add table
Reference in a new issue