mirror of
https://github.com/overte-org/overte.git
synced 2025-08-04 12:15:13 +02:00
Merge branch 'master' of https://github.com/highfidelity/hifi into tot
This commit is contained in:
commit
0169d82fff
1 changed files with 4 additions and 0 deletions
|
@ -17,9 +17,13 @@ var sound = SoundCache.getSound(HIFI_PUBLIC_BUCKET + "sounds/220Sine.wav");
|
|||
|
||||
var soundPlaying = false;
|
||||
|
||||
var offset = Vec3.normalize(Quat.getFront(MyAvatar.orientation));
|
||||
var position = Vec3.sum(MyAvatar.position, offset);
|
||||
|
||||
function update(deltaTime) {
|
||||
if (!Audio.isInjectorPlaying(soundPlaying)) {
|
||||
soundPlaying = Audio.playSound(sound, {
|
||||
position: position,
|
||||
loop: true
|
||||
});
|
||||
print("Started sound loop");
|
||||
|
|
Loading…
Reference in a new issue