repo: janusweb
action: commit
revision: 
path_from: 
revision_from: 4047aefa08729ede7e3ff3c93b9725fabf8a7012:
path_to: 
revision_to: 
git.thebackupbox.net
janusweb
git clone git://git.thebackupbox.net/janusweb
commit 4047aefa08729ede7e3ff3c93b9725fabf8a7012
Author: James Baicoianu 
Date:   Thu Oct 17 17:26:48 2024 -0700

    Start volume fade-in with a non-zero value

diff --git a/scripts/room.js b/scripts/room.js
index 83940fb4c71f8333842c60c02bdf0fa9a3e9c7bb..
index ..17a81e6e41c5d69cdcfd660f202fb10768b65956 100644
--- a/scripts/room.js
+++ b/scripts/room.js
@@ -2876,6 +2876,9 @@ console.log('dispatch to parent', event, this, event.target);
         gain.gain.cancelScheduledValues(ctx.currentTime);
         gain.gain.linearRampToValueAtTime(gain.gain.value, ctx.currentTime);
         gain.gain.linearRampToValueAtTime(value, ctx.currentTime + time);
+        if (gain.gain.value == 0) {
+          gain.gain.value = .01;
+        }
       }
     }
     this.fadeAudioOut = function(time=4, value=0) {

-----END OF PAGE-----