Home   Help Search Login Register  

Author Topic: how to add many sounds in description.ext file?  (Read 762 times)

0 Members and 1 Guest are viewing this topic.

pertti49

  • Guest
how to add many sounds in description.ext file?
« on: 28 Nov 2002, 19:09:57 »
i have managed to get the first sound working but i dont know how to add there many, second ogg"openfire" whount work ill posted my file so maybe somebody could tell what commands will be between those sounds its look like this
class CfgSounds
{
sounds[] = { battle};

class battle
{
name = "battle";
sound[] = {"battle.ogg", db +10, 1.0};
titles[] =
{
0, $STRM_battle
};
class CfgSounds
{
sounds[] = { openfire};

class openfire
{
name = "openfire";
sound[] = {"openfire.ogg", db +10, 1.0};
titles[] =
{
0, $STRM_openfire
};
};
};
« Last Edit: 28 Nov 2002, 19:10:31 by pertti49 »

LAPD

  • Guest
Re: How to add many sounds in description.ext file?
« Reply #1 on: 28 Nov 2002, 23:56:03 »
I've noticed of few mistakes.
I think it should be like that:

Quote
class CfgSounds
{
sounds[] = {battle, openfire};

class battle
{
name = "battle";
sound[] = {"battle.ogg", db +10, 1.0};
titles[] =
{
0, $STRM_battle
};
};

class openfire
{
name = "openfire";
sound[] = {"openfire.ogg", db +10, 1.0};
titles[] =
{
0, $STRM_openfire
};
};
};

This supposed to work. If it dosen't, it because there are too many }; in the end so remove one.
Note: The db+10 means of the volume of the sound, and I think it can go until 100, so if your sound volume is too low, you can adjust it to your suit.

Hope this Helps  :)
LAPD

Captain Winters

  • Guest
Re:how to add many sounds in description.ext file?
« Reply #2 on: 29 Nov 2002, 03:21:40 »
class CfgMusic  
{  
tracks[] = { "*, *, *" };  
class *  
{  
name = "WHAT EVER NAME U WNAT";  
sound[] = {"\music\*.ogg", db+50, 1.0};
}
class *                                              MARKED
{  
name = "WHAT EVER NAME U WANT";  
sound[] = {"\music\*.ogg", db+50, 1.0};
}                                                      PART
class *  
{  
name = "WHAT EVER NAME U WANT";  
sound[] = {"\music\*.ogg", db+50, 1.0};
};  
};


*= the name of the ogg file

if u want to add more than 3 song sjust copy/paste the marked part!
________________________
________________________
CAPN' WINTERS OUT!