mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 02:17:11 +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,12 +21,12 @@ var offset = Vec3.normalize(Quat.getFront(MyAvatar.orientation));
|
|||
var position = Vec3.sum(MyAvatar.position, offset);
|
||||
|
||||
function update(deltaTime) {
|
||||
if (!soundPlaying.isPlaying) {
|
||||
if (sound.downloaded && !soundPlaying) {
|
||||
print("Started sound loop");
|
||||
soundPlaying = Audio.playSound(sound, {
|
||||
position: position,
|
||||
loop: true
|
||||
});
|
||||
print("Started sound loop");
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue