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) { 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;