Home   Help Search Login Register  

Author Topic: Sounds, description  (Read 329 times)

0 Members and 1 Guest are viewing this topic.

Benson

  • Guest
Sounds, description
« on: 06 Apr 2004, 14:06:30 »
Hi,

I have my sound in a subfolder called "sound".
They are in .ogg format.
In my description.ext i have this
Code: [Select]
onloadmission = "tester"

class cfgsounds
{
sounds[] = {klik,muziek};
};
class klik
{
name="klik"
sound[]= {"klik.ogg", db+20, 1.0};
titles[] = {0, $STRM_klik};
};
class muziek
{
name="muziek"
sound[]= {"muziek.ogg", db+20, 1.0};
titles[] = {0, $STRM_muziek};
};

I'm doing something wrong, but what ?
Can someone point me to the problem ?

Offline Zombie

  • Members
  • *
  • Beware the night, the zombie walks among you
    • USI
Re:Sounds, description
« Reply #1 on: 06 Apr 2004, 16:02:52 »
not sure what the titles line in your script does, but my wizard just gave me this for your sounds:
Code: [Select]
class CfgSounds
{
   // List of sounds (.ogg files without the .ogg extension)
   sounds[] = {klik, musiec};

   // Class definition needed for each sound
   class klik
   {
      // Name to display in mission editor
      name = "klik";
      // Sound path, volume, pitch
      sound[] = {\sound\klik.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
   class musiec
   {
      // Name to display in mission editor
      name = "musiec";
      // Sound path, volume, pitch
      sound[] = {\sound\musiec.ogg, db + 0, 1.0};
      // Sound title text (set to no text)
      titles[] = {0, ""};
   };
};
Does that help?

Benson

  • Guest
Re:Sounds, description
« Reply #2 on: 06 Apr 2004, 17:27:17 »
Yes it helped :D.

I also noticed there is an difference between playsound and playmusic :'( .
Dind't thought ofp had so much commands :D

Another question; Is it possible too lower down the volume of tank and shooting lads to zero so my "sound" can get it's right "appearance"  ??