Home   Help Search Login Register  

Author Topic: Custom sounds?  (Read 1868 times)

0 Members and 1 Guest are viewing this topic.

Offline SharkDog

  • Members
  • *
Custom sounds?
« on: 07 Jun 2009, 17:47:00 »
Anyone got custom sounds to work?

I tried like in ofp with ogg format and adding it to the description.ext

But it seems it needs to be a differant format or something?

Cheers,

Rutger

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re: Custom sounds?
« Reply #1 on: 07 Jun 2009, 19:32:39 »
Indeed ogg still works..

Some things to remmeber..

Any changes to the description.ext, its always a good practice to save the mission before previewing. This ensures the description.ext is re read on next preview. Especially important with dialogs but I assume it applies to configs or any classes in the description.ext.


In my example..

Code: [Select]
class CfgMusic
{
 tracks[]={};

 class JPTrack1
 {
  name = "JohnPilkey Track1";
  sound[] = {"\sound\file0036.ogg", db+5, 1.0};
 };
};

A good way to check if your sound is in the description.ext config and read properly is to open up the effects button on a trigger and you should see your track listed at the bottom. such as mine in the image. Do this before actually playing the sound file. If you happen to screw something up its likely you will have to restart the game

You can also read through some of the tutorials we have. Tutorials

Xbox Rocks

Offline SharkDog

  • Members
  • *
Re: Custom sounds?
« Reply #2 on: 08 Jun 2009, 13:32:55 »
Thanks, that helped,

Cheers!