mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 10:07:58 +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) {
|
if (Math.random() < CHANCE_OF_PLAYING_SOUND) {
|
||||||
// play a sound at the location of the entity
|
// play a sound at the location of the entity
|
||||||
var options = new AudioInjectionOptions();
|
Audio.playSound(sound, {
|
||||||
options.position = entityPosition;
|
position: entityPosition,
|
||||||
options.volume = 0.75;
|
volume: 0.75
|
||||||
Audio.playSound(sound, options);
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
var audioAverageLoudness = MyAvatar.audioAverageLoudness * FACTOR;
|
var audioAverageLoudness = MyAvatar.audioAverageLoudness * FACTOR;
|
||||||
|
|
Loading…
Reference in a new issue