mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 03:44:02 +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);
|
||||
|
||||
function update(deltaTime) {
|
||||
if (!soundPlaying.isPlaying) {
|
||||
soundPlaying = Audio.playSound(sound, {
|
||||
position: position,
|
||||
loop: true
|
||||
});
|
||||
print("Started sound loop");
|
||||
}
|
||||
if (sound.downloaded && !soundPlaying) {
|
||||
print("Started sound loop");
|
||||
soundPlaying = Audio.playSound(sound, {
|
||||
position: position,
|
||||
loop: true
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Script.update.connect(update);
|
||||
|
|
Loading…
Reference in a new issue