mirror of
https://github.com/wassname/phaser.git
synced 2026-07-19 11:26:26 +08:00
Fixed a bug stopping legacy Audio from starting correctly. Also fixed an issue in the Loader causing it to not load the next file if an unsupported audio file was encountered. Fixed audio playback issues on Firefox/Waterfox as a result.
This commit is contained in:
@@ -49,6 +49,8 @@ Phaser.Cache = function (game) {
|
||||
|
||||
this.addDefaultImage();
|
||||
|
||||
this.onSoundUnlock = new Phaser.Signal;
|
||||
|
||||
};
|
||||
|
||||
Phaser.Cache.prototype = {
|
||||
|
||||
@@ -471,7 +471,7 @@ Phaser.Loader.prototype = {
|
||||
{
|
||||
if (this.game.sound.touchLocked)
|
||||
{
|
||||
// If audio is locked we can't do this yet, so need to queue this load request somehow. Bum.
|
||||
// If audio is locked we can't do this yet, so need to queue this load request. Bum.
|
||||
file.data = new Audio();
|
||||
file.data.name = file.key;
|
||||
file.data.preload = 'auto';
|
||||
@@ -492,6 +492,10 @@ Phaser.Loader.prototype = {
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
this.fileError(file.key);
|
||||
}
|
||||
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user