mirror of
https://github.com/wassname/phaser.git
synced 2026-07-27 11:25:30 +08:00
Phaser now running on iOS. Also fixed a legacy bug where a pending sound wouldn't play once it was touch unlocked. Also fixed Input not working on WebGL contexts. Added WebGL texture updates to the Group/World swap functions.
This commit is contained in:
+4
-2
@@ -167,7 +167,7 @@ Phaser.Cache.prototype = {
|
||||
decoded = true;
|
||||
}
|
||||
|
||||
this._sounds[key] = { url: url, data: data, locked: locked, isDecoding: false, decoded: decoded, webAudio: webAudio, audioTag: audioTag };
|
||||
this._sounds[key] = { url: url, data: data, isDecoding: false, decoded: decoded, webAudio: webAudio, audioTag: audioTag };
|
||||
|
||||
},
|
||||
|
||||
@@ -354,7 +354,9 @@ Phaser.Cache.prototype = {
|
||||
* @return {object} The sound data you want.
|
||||
*/
|
||||
isSoundReady: function (key) {
|
||||
return (this._sounds[key] && this._sounds[key].decoded == true && this._sounds[key].locked == false);
|
||||
|
||||
return (this._sounds[key] && this._sounds[key].decoded && this.game.sound.touchLocked == false);
|
||||
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user