Needs a lot of cleanup. Data has been de-duplicated, and where identical copies existed, one of them has been replaced with a symlink. Some files have been excluded, such as binaries, installers and debug dumps. Some of that may still be present.
20 lines
639 B
JavaScript
20 lines
639 B
JavaScript
|
|
var ORIGIN = {x: 0, y: 0, z: 0};
|
|
var MUSIC_URL = "file:///C:/msys64/home/anthony/code/hifi-assets/blacklodge/Bohren & Der Club Of Gore - Prowler.wav";
|
|
var musicSound = SoundCache.getSound(MUSIC_URL);
|
|
var musicInjector;
|
|
|
|
print("AJT: starting blacklodge ac.js");
|
|
|
|
function update(dt) {
|
|
if (musicSound.downloaded) {
|
|
if (!musicInjector) {
|
|
print("AJT: music has been downloaded!");
|
|
musicInjector = Audio.playSound(musicSound, { position: ORIGIN, volume: 1.0, loop: true });
|
|
} else {
|
|
Script.update.disconnect(update);
|
|
}
|
|
}
|
|
}
|
|
|
|
Script.update.connect(update);
|