mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-07-23 00:49:08 +02:00
update baseball crowd to loop better
This commit is contained in:
parent
45b110cd7e
commit
e8c6acfeb6
1 changed files with 2 additions and 2 deletions
|
@ -9,11 +9,11 @@
|
|||
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
||||
//
|
||||
|
||||
var crowd1 = SoundCache.getSound("atp:0e921b644464d56d5b412ea2ea1d83f8ff3f7506c4b0471ea336a4770daf3b82.wav");
|
||||
var crowd1 = SoundCache.getSound("atp:d9978e693035d4e2b5c7b546c8cccfb2dde5677834d9eed5206ccb2da55b4732.wav");
|
||||
|
||||
function maybePlaySound(deltaTime) {
|
||||
if (crowd1.downloaded && !crowd1.isPlaying) {
|
||||
Audio.playSound(crowd1, { position: { x: 0, y: 0, z: 0}, loop: true});
|
||||
Audio.playSound(crowd1, { position: { x: 0, y: 0, z: 0}, loop: true, volume: 0.5 });
|
||||
Script.update.disconnect(maybePlaySound);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue