|
Dagmar Kohime
Yep, I'm good with that!
Join date: 14 Apr 2007
Posts: 110
|
09-07-2007 09:01
Hello All, I'm experiencing a volume issue with a sound that I just uploaded. I edited this clip at top volume before I uploaded it, because I want to use it in an object that is going to be 20-25 meters away from anyone touching to activate it. I have used this sound, which is a single 7-second clip, in conjunction with the following script, and it plays, but with veerry low volume. I know 20 meters is a goodly distance, but the volume is STILL only about a third of its uploaded vol even when I'm standing on top of it. It looks to me like this script is set at highest vol (1.0)...right? Thanks for your time, Dag Anyone?...............anyone?............ default { state_entry() { integer i; integer n = llGetInventoryNumber(INVENTORY_SOUND); llOwnerSay("Pre-loading sounds..."); for (i = 0; i < n; i++) { llPreloadSound(llGetInventoryName(INVENTORY_SOUND, i)); } llOwnerSay("Sounds pre-loaded, click to trigger the sound emission."); }
on_rez(integer param) { llResetScript(); }
touch_start(integer num) { integer n = llGetInventoryNumber(INVENTORY_SOUND); string sound = llGetInventoryName(INVENTORY_SOUND, (integer)llFrand((float)n)); llPlaySound(sound, 1.0); } }
_____________________
"Ruprecht loves the wide open spaces"
|
|
Malachi Petunia
Gentle Miscreant
Join date: 21 Sep 2003
Posts: 3,414
|
09-07-2007 09:26
The script doesn't control the sound amplitude at distance, the client preferences (Audio Distance and Rolloff) decide how loud a client hears a source.
Does this mean every listener could have a different impression? Yep.
|
|
Shadow Subagja
Registered User
Join date: 29 Apr 2007
Posts: 354
|
09-07-2007 09:51
The docs say that volume 1 tapers off over 128m, so 20m should still be plenty strong. If you get desperate I could see a solution being a transparent nonphysical prim that moves to the detected 'toucher' and plays the sound via llTriggerSound or something, then moves back. A bit of a hack but it would probably work to preserve full volume.
|
|
Dagmar Kohime
Yep, I'm good with that!
Join date: 14 Apr 2007
Posts: 110
|
09-07-2007 13:22
I appreciate the input you guys. My settings including rolloff are 3/4 max. I guess what I'm really having trouble understanding is why there's such a huge difference in the volume between the original clip and the SL-transformed one. Dag
_____________________
"Ruprecht loves the wide open spaces"
|