Home   Help Search Login Register  

Author Topic: decreasing the volume of a soundfile  (Read 571 times)

0 Members and 1 Guest are viewing this topic.

Offline Blanco

  • Former Staff
  • ****
decreasing the volume of a soundfile
« on: 27 Dec 2002, 18:56:24 »
I have a custom soundfile "sirene" that I took from Mohaa, but it's too loud. in my desciption file I have a line  with,


... db + 0, 1.0...
(I don't know the whole line cause I can't check it here, but the custom sound works fine)

the "db" thing (decibel) is the volume right?
1.0 is the pitch...

When I change it to db - 50 ...nothing changed??
The sound is just as loud as when I type db +50...

I can resample it and decrease the volume but is there a way to do it in the description file??

another Q about the same soundfile...

When the sirene goes off I want it sounded from a base, so when the player is far from the base it would sound a bit quieter than when he's close. I think I can't use  a custom sound file than, but an envirment sound, but that activates when the player is in range of the trigger? How can I do that?

I hope U understand my English :P    



 

« Last Edit: 27 Dec 2002, 18:57:14 by Blanco »
Search or search or search before you ask.

Captain Winters

  • Guest
Re:decreasing the volume of a soundfile
« Reply #1 on: 27 Dec 2002, 22:22:42 »
you ken use this command in a trigger script or where ever u want!

03 fadeMusic 0.25


03 is the time u want it to last, and 0.25 is the volume you want it to decrease to!

PEACE AND CHICKEN GREASE!
____________________________________
____________________________________
Capn' Winters Out!


EDIT   PS-For your Descrption.ext you can give the db a lower or negative amount!!

ex:


class CfgMusic  
{  
tracks[] = { "R6,R61,BHD,BOB1" };  
class R6  
{  
name = "R6";  
sound[] = {"\music\R6.ogg", db-10, 1.0};  
}


50 is too high. I believe 30 id the max volume!
« Last Edit: 27 Dec 2002, 22:28:08 by Captain Winters »