mirror of
https://github.com/AleziaKurdis/overte.git
synced 2025-04-16 18:18:19 +02:00
Fix interstitial music not playing at Interface start-up
This commit is contained in:
parent
5c97954e66
commit
aca7143449
1 changed files with 14 additions and 5 deletions
|
@ -285,12 +285,21 @@
|
|||
}
|
||||
}
|
||||
|
||||
function restartAudio() {
|
||||
tune.ready.disconnect(restartAudio);
|
||||
startAudio();
|
||||
}
|
||||
|
||||
function startAudio() {
|
||||
sample = Audio.playSound(tune, {
|
||||
localOnly: true,
|
||||
position: MyAvatar.getHeadPosition(),
|
||||
volume: VOLUME
|
||||
});
|
||||
if (tune.downloaded) {
|
||||
sample = Audio.playSound(tune, {
|
||||
localOnly: true,
|
||||
position: MyAvatar.getHeadPosition(),
|
||||
volume: VOLUME
|
||||
});
|
||||
} else {
|
||||
tune.ready.connect(restartAudio);
|
||||
}
|
||||
}
|
||||
|
||||
function endAudio() {
|
||||
|
|
Loading…
Reference in a new issue