mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 15:58:35 +02:00
use new injector API in inWorldTestTone
This commit is contained in:
parent
eda7d8ffb1
commit
1120a5f963
1 changed files with 7 additions and 7 deletions
|
@ -21,13 +21,13 @@ var offset = Vec3.normalize(Quat.getFront(MyAvatar.orientation));
|
||||||
var position = Vec3.sum(MyAvatar.position, offset);
|
var position = Vec3.sum(MyAvatar.position, offset);
|
||||||
|
|
||||||
function update(deltaTime) {
|
function update(deltaTime) {
|
||||||
if (!soundPlaying.isPlaying) {
|
if (sound.downloaded && !soundPlaying) {
|
||||||
soundPlaying = Audio.playSound(sound, {
|
print("Started sound loop");
|
||||||
position: position,
|
soundPlaying = Audio.playSound(sound, {
|
||||||
loop: true
|
position: position,
|
||||||
});
|
loop: true
|
||||||
print("Started sound loop");
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
Script.update.connect(update);
|
Script.update.connect(update);
|
||||||
|
|
Loading…
Reference in a new issue