add test content

This commit is contained in:
Brad Hefta-Gaub 2016-05-29 13:33:24 -07:00
parent f65f99a3e0
commit 1fb8f659a7
2 changed files with 18 additions and 0 deletions

Binary file not shown.

View file

@ -0,0 +1,18 @@
var audioOptions = {
volume: 1.0,
loop: true,
position: MyAvatar.position
}
var sineWave = Script.resolvePath("./1760sine.wav");
var sound = SoundCache.getSound(sineWave);
var injectorCount = 0;
var MAX_INJECTOR_COUNT = 40;
Script.update.connect(function() {
if (sound.downloaded && injectorCount < MAX_INJECTOR_COUNT) {
injectorCount++;
print("stating injector:" + injectorCount);
Audio.playSound(sound, audioOptions);
}
});