repo: janusweb action: commit revision: path_from: revision_from: 4047aefa08729ede7e3ff3c93b9725fabf8a7012: path_to: revision_to:
commit 4047aefa08729ede7e3ff3c93b9725fabf8a7012 Author: James BaicoianuDate: 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
--- 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-----