Skip to content

Commit 920e083

Browse files
Updating sound duration only if it is not set yet (equal to 0)
1 parent d664a7d commit 920e083

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

src/sound/html5/HTML5AudioSoundManager.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,11 @@ var HTML5AudioSoundManager = new Class({
227227
{
228228
this.forEachActiveSound(function (sound)
229229
{
230-
sound.duration = sound.tags[0].duration;
230+
if(sound.duration === 0)
231+
{
232+
sound.duration = sound.tags[0].duration;
233+
}
234+
231235
sound.totalDuration = sound.tags[0].duration;
232236
});
233237

0 commit comments

Comments
 (0)