From 3b73ed74581276d15ce76e6561abfd4bed6fab97 Mon Sep 17 00:00:00 2001 From: Andreas Plesch Date: Mon, 20 Jun 2022 19:24:24 -0400 Subject: [PATCH 1/2] load audio after change; control loop --- src/nodes/Sound/AudioClip.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/nodes/Sound/AudioClip.js b/src/nodes/Sound/AudioClip.js index 2906ad4b7d..0086efa7c5 100644 --- a/src/nodes/Sound/AudioClip.js +++ b/src/nodes/Sound/AudioClip.js @@ -90,7 +90,6 @@ x3dom.registerNodeType( this._startAudio = function () { - that._audio.loop = that._vf.loop ? "loop" : ""; if ( that._vf.enabled === true ) { that._audio.play() @@ -165,6 +164,7 @@ x3dom.registerNodeType( src.setAttribute( "src", audioUrl ); this._audio.appendChild( src ); } + this._audio.load(); } }, From 25a629445d8e971890703955bdc5752c2758f73d Mon Sep 17 00:00:00 2001 From: Andreas Plesch Date: Mon, 20 Jun 2022 19:33:52 -0400 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index cc6b6abe18..5260c40fec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,7 @@ ## Version 1.8.3-dev * Bugfixes + * support url field change for AudioClip * better indices for textured IFS with creases * ensure correct children order after ExternProto instancing * delete Bindables on Inline removal