update audioBall to new hash injector format

This commit is contained in:
Stephen Birarda 2014-11-11 10:28:33 -08:00
parent 05174ffdf3
commit c684a1cf00

View file

@ -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;