Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Volyme of sound in SL.???

PetGirl Bergman
Fellow Creature:-)
Join date: 16 Feb 2005
Posts: 2,414
05-26-2007 06:33
Volyme of sound in SL.???

Is it possible to decide the volume in a script? Set it as high as possible? or as low as possible. In the script?

Is there a chance to build in volume in steps? - so when you click on a prim you get that blue card and maybe get a choice between 3-5 diff volumes?

/Tina
Hg Beeks
llGetElement(80);
Join date: 13 Apr 2006
Posts: 134
05-26-2007 07:01
The highest possible is 1.0, and the lowest is 0.0. Any higher than 1 just plays at a volume of 1. the command is llPlaySound("FileName", x) where x is the volume of the file played.
You could use the dialog for volumes 1-5, and
CODE

float x = 0.2 * returned
llPlaySound("Gregor Samsa", x);
PetGirl Bergman
Fellow Creature:-)
Join date: 16 Feb 2005
Posts: 2,414
05-26-2007 08:32
Wow I dont understand a thing but I will learn:-) promisse!

And default are 0,5 then?.. If you only put a sound in the box (prim)...???

/Tina
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
05-26-2007 10:00
No, there is no "default" volume in SL. All the sound functions take a volume, which is a float from 0.0 (muted) to 1.0 (full volume).

Of course, the actual heard volume also depends on the volume of the sound clip as you uploaded it.
PetGirl Bergman
Fellow Creature:-)
Join date: 16 Feb 2005
Posts: 2,414
05-26-2007 23:15
string soundname = "LOVESL";
default
{
state_entry()
{
}

touch_start(integer total_number)
{
llPlaySound(soundname,1.0);
}
}



*****

So this is it?... and volume? is that the 1.0 one.. and if I want this as a loop - as an endless ”tape”----

/Tina
Marcush Nemeth
Registered User
Join date: 3 Apr 2007
Posts: 402
05-27-2007 01:57
Most people just use volume 1. That also why it's rather pointless bothering with soundvolume, unless you like adding fade-ins and fade-outs, since everybody has their speakers adjusted to volume 1 anyway. It's no use trying to go any higher to startle a visitor with a shriek or something. It just won't play any louder because everybody is already trrying to play their sounds louder then their neighbours.
Talarus Luan
Ancient Archaean Dragon
Join date: 18 Mar 2006
Posts: 4,831
05-27-2007 07:18
From: PetGirl Bergman
So this is it?... and volume? is that the 1.0 one.. and if I want this as a loop - as an endless ”tape”----


llLoopSound(soundname,1.0);
Jeff Kelley
Registered User
Join date: 8 Nov 2006
Posts: 223
05-27-2007 07:53
From: Marcush Nemeth
Most people just use volume 1
and this is bad because a real sound scene has a dynamics, that is sound levels ranging from faint to loud. The sea sound may be boring at 1.0 but nice at 0.1. Using low level helps building a realistic sound scene, with better distance cues.

A problem which, in my knowledge, has no solution is the ratio between spatialized and streamed sounds. Default level for streamed sound is much higher than for spatialized sounds. To get a proper balance, you have to adjust the Music slider to it's minimum. Rather, users turn their speaker volume down, making sound effect inaudible. A reference should be the typing animation playing as loud as a nearby keyboard (yes some hate it, but it is a reallly, really good cue). If you have nice sound effects on your parcel, turn music down.
Marcush Nemeth
Registered User
Join date: 3 Apr 2007
Posts: 402
05-28-2007 02:41
From: Jeff Kelley
and this is bad because a real sound scene has a dynamics, that is sound levels ranging from faint to loud. The sea sound may be boring at 1.0 but nice at 0.1. Using low level helps building a realistic sound scene, with better distance cues.

You are too right. But sadly, most people don't have a clue about this. I've seen places that had nice dynamical sounds, but not many I'm afraid :(
Jeff Kelley
Registered User
Join date: 8 Nov 2006
Posts: 223
05-29-2007 06:14
From: Marcush Nemeth
I've seen places that had nice dynamical sounds, but not many I'm afraid :(
Nexus Prime comes to my mind. SL's audio spatializing engine is quite remarkable.
Da5id Zsigmond
Registered User
Join date: 26 Jan 2007
Posts: 34
Level of Streamed VS Prims with Sounds.
05-31-2007 20:51
Everyone could be more familiar with the audio preferences settings for RollOff and Distance Factor. I found that with the default settings things were quite unnatural in regard to sound balance between objects and with distance. Basically you can set how far away you can hear a sound from a prim and at what rate the volume decreases with distance. Between that and using the volume control on the streamed music you can get the most out of the situation.