diff --git a/unpublishedScripts/DomainContent/CellScience/Scripts/showButtonToPlaySound.js b/unpublishedScripts/DomainContent/CellScience/Scripts/showButtonToPlaySound.js index 6ee3b9645b..6c1533371b 100644 --- a/unpublishedScripts/DomainContent/CellScience/Scripts/showButtonToPlaySound.js +++ b/unpublishedScripts/DomainContent/CellScience/Scripts/showButtonToPlaySound.js @@ -6,7 +6,7 @@ // (function() { - var baseURL = "https://hifi-production.s3.amazonaws.com/hifi-production/DomainContent/CellScience/"; + var baseURL = "https://hifi-production.s3.amazonaws.com/DomainContent/CellScience/"; var self = this; this.buttonImageURL = baseURL + "GUI/play_audio.svg?2"; @@ -116,4 +116,4 @@ Controller.mousePressEvent.connect(this.onClick); Script.update.connect(this.update); -}); \ No newline at end of file +}); 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 +});