From 18849d54166d83094780052a73bb29bcba34ff29 Mon Sep 17 00:00:00 2001 From: David Kelly Date: Fri, 14 Oct 2016 14:42:50 -0700 Subject: [PATCH] Fixed sound issue Long ago, localOnly didn't change volume based on position, let alone do HTRF. Now it does, though only the former on stereo .wav files. So we were playing the sound at a position far from where you may have been, and also with a really low volume. This addresses both. --- .../DomainContent/CellScience/Scripts/showIdentification.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/unpublishedScripts/DomainContent/CellScience/Scripts/showIdentification.js b/unpublishedScripts/DomainContent/CellScience/Scripts/showIdentification.js index a7a74fa79c..c33caf8b37 100644 --- a/unpublishedScripts/DomainContent/CellScience/Scripts/showIdentification.js +++ b/unpublishedScripts/DomainContent/CellScience/Scripts/showIdentification.js @@ -47,8 +47,7 @@ stereo: true, loop: false, localOnly: true, - volume: 0.035, - position: properties.position + volume: 0.45, }; self.sound = SoundCache.getSound(self.soundURL); self.buttonImageURL = baseURL + "GUI/GUI_audio.png?" + version; @@ -142,6 +141,7 @@ Overlays.editOverlay(self.button, { visible: false }); + self.soundOptions.position = MyAvatar.position; this.soundPlaying = Audio.playSound(self.sound, self.soundOptions); } else { // print("not downloaded"); @@ -162,4 +162,4 @@ Controller.mousePressEvent.connect(this.onClick); -}); \ No newline at end of file +});