mirror of
https://github.com/overte-org/overte.git
synced 2025-04-06 23:53:09 +02:00
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.
This commit is contained in:
parent
89665d4853
commit
18849d5416
1 changed files with 3 additions and 3 deletions
|
@ -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);
|
||||
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue