mirror of
https://github.com/overte-org/overte.git
synced 2025-04-26 15:56:15 +02:00
23 lines
600 B
JavaScript
23 lines
600 B
JavaScript
//
|
|
// playSoundWave.js
|
|
// examples
|
|
//
|
|
// Created by Ryan Huffman on 05/27/14.
|
|
// Copyright 2014 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
|
|
HIFI_PUBLIC_BUCKET = "http://s3.amazonaws.com/hifi-public/";
|
|
|
|
var soundClip = SoundCache.getSound(HIFI_PUBLIC_BUCKET + "sounds/Cocktail%20Party%20Snippets/Walken1.wav");
|
|
|
|
function playSound() {
|
|
Audio.playSound(soundClip, {
|
|
position: MyAvatar.position,
|
|
volume: 0.5
|
|
});
|
|
}
|
|
|
|
Script.setInterval(playSound, 10000);
|