mirror of
https://github.com/lubosz/overte.git
synced 2025-04-10 17:22:40 +02:00
update playSound to new sound interface
This commit is contained in:
parent
8a03738c83
commit
de5881818b
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue