use new AudioInjectionOptions format in botProceduralWayPoints

This commit is contained in:
Stephen Birarda 2014-11-11 11:05:35 -08:00
parent 3d1bb68c72
commit 89ae8f53ba

View file

@ -172,13 +172,11 @@ function playRandomSound() {
} }
function playRandomFootstepSound() { function playRandomFootstepSound() {
var whichSound = Math.floor((Math.random() * footstepSounds.length));
var whichSound = Math.floor((Math.random() * footstepSounds.length)); Audio.playSound(footstepSounds[whichSound], {
var options = new AudioInjectionOptions(); position: Avatar.position,
options.position = Avatar.position; volume: 1.0
options.volume = 1.0; });
Audio.playSound(footstepSounds[whichSound], options);
} }
// Facial Animation // Facial Animation