High Fidelity is so frustrating.
I need to stop a sound that is playing. So looking on the wiki. But the sound section is so incomplete as possible. And the worse thing is that i know the info is on the old docs page. But that is not available anymore (pretty stupid move)
So, i tried to search in example scripts. i tried to open the wayback to decypt the garbled info. but that generate error and not load the pages at all. In other words, again nothing done because simple tasks are the hard tasks
So how do you stop a sound in high fidelity ?
Also detecting if a sound is playing with isPlaying seems to generate errors. In this case again the old docs page where [pretty clear around this parts.
Again, what is the URL of the old docs page.
i cannot believe the removed it complete.
Wayback is working again, decrypting the spaghetti code.
Because the crippled reading ,
there are mabye some errors. But better then what’s on the wiki
var injector = Audio.playSound(options);
stops playback and restarts from beginning - useful for repeated sounds
stops playback immediately
returns the loudness in last frame as a value between 0 and 1.0
your injector is done playing"
Now, let’s see if i can finish what i wanted today
Now i only need to fix error.
[01/26 20:31:38] [CRITICAL] [hifi.scriptengine] "[UncaughtException] TypeError: Result of expression ‘audioDoorOpenInjector’ [undefined] is not an object. in Entities 1:86\n[Backtrace]\n