I worked how to import the sound into High Fidelity during this weekend.
I tried to rewrite the code of Looping sound emitter for several times and last I stop the looping and make it only play for once. Just copy the script URL and paste in Browser, all of the code will comes up. Then we can save them into a notepad. Next step is to open the code, search the "loop" and you can see the code.
if (!injector) {
if (soundURL.downloaded) {
injector = Audio.playSound(soundURL, {
position: properties.position,
volume: soundVolume,
loop: true,//soundLoop,
localOnly: true//;//soundLocal
Change the yellow true behind red loop into false, the loop will be stop and sound will play only once.
I also found another player in the market which named Ambisonic Emitter - Coastal Ambience. For this player, I could change the sound URL as well. However, the difference between others is I users also could set the range of this sound. When I set the range as 3, the effective distance is 3 meters. Although the sound in this range will be looping again and again, when we walk outside of this space the sound will be disappear.
I think this script is better than last one because it provides the sound in specific place. It will not bother other places. I prefer to use this one unless I could write a new script which the sound will comes up by click the stuff.
By the way, I ask my friend for help and he said"The script( Looping sound emitter) is quite complicated,even some of them I don't understand. I could help you stop the loop but not to write a new one." 😅
No comments:
Post a Comment