mirror of
https://github.com/photonstorm/phaser
synced 2024-11-27 23:20:59 +00:00
Updating sound duration only if it is not set yet (equal to 0)
This commit is contained in:
parent
d664a7d4a6
commit
920e083a8a
1 changed files with 5 additions and 1 deletions
|
@ -227,7 +227,11 @@ var HTML5AudioSoundManager = new Class({
|
|||
{
|
||||
this.forEachActiveSound(function (sound)
|
||||
{
|
||||
sound.duration = sound.tags[0].duration;
|
||||
if(sound.duration === 0)
|
||||
{
|
||||
sound.duration = sound.tags[0].duration;
|
||||
}
|
||||
|
||||
sound.totalDuration = sound.tags[0].duration;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in a new issue