mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 15:23:56 +02:00
update audioBall to new hash injector format
This commit is contained in:
parent
05174ffdf3
commit
c684a1cf00
1 changed files with 4 additions and 4 deletions
|
@ -32,10 +32,10 @@ function updateEntity(deltaTime) {
|
|||
|
||||
if (Math.random() < CHANCE_OF_PLAYING_SOUND) {
|
||||
// play a sound at the location of the entity
|
||||
var options = new AudioInjectionOptions();
|
||||
options.position = entityPosition;
|
||||
options.volume = 0.75;
|
||||
Audio.playSound(sound, options);
|
||||
Audio.playSound(sound, {
|
||||
position: entityPosition,
|
||||
volume: 0.75
|
||||
});
|
||||
}
|
||||
|
||||
var audioAverageLoudness = MyAvatar.audioAverageLoudness * FACTOR;
|
||||
|
|
Loading…
Reference in a new issue