From c684a1cf006e58751d809502c402735ad22d7373 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 11 Nov 2014 10:28:33 -0800 Subject: [PATCH] update audioBall to new hash injector format --- examples/audioBall.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/audioBall.js b/examples/audioBall.js index 7e7126be06..ca666285a9 100644 --- a/examples/audioBall.js +++ b/examples/audioBall.js @@ -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;