From de5881818b06f042de2607d3b5e377dc80518a16 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Thu, 13 Nov 2014 14:54:48 -0800 Subject: [PATCH] update playSound to new sound interface --- examples/playSound.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/playSound.js b/examples/playSound.js index efcda0b42b..bc21204665 100644 --- a/examples/playSound.js +++ b/examples/playSound.js @@ -11,7 +11,7 @@ Script.include("libraries/globals.js"); // First, load a sample sound from a URL -var bird = new Sound(HIFI_PUBLIC_BUCKET + "sounds/Animals/bushtit_1.raw"); +var bird = SoundCache.getSound(HIFI_PUBLIC_BUCKET + "sounds/Animals/bushtit_1.raw"); function maybePlaySound(deltaTime) { if (Math.random() < 0.01) {