Home   Help Search Login Register  

Author Topic: .ogg files  (Read 523 times)

0 Members and 1 Guest are viewing this topic.

Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
.ogg files
« on: 09 Apr 2004, 20:24:42 »
hey everyone,

does anyone know where to put .ogg files when you want to use them in a mission. I read something in one of the many tutorials of having to create a directory and putting it in there. I created a normal folder and placed it in there but with no results.
If anyone would send me a sample mission (in the .sqm form) it would be much appreciated.

Thnx

Hauk

coolisamy

  • Guest
Re:.ogg files
« Reply #1 on: 09 Apr 2004, 20:43:03 »
Put the ogg file into a folder called "Sound" then put the "Sound" folder into the missions folder.


Sniper_Kyle

  • Guest
Re:.ogg files
« Reply #2 on: 18 Apr 2004, 16:57:25 »
You must also know that you need to make a description.ext file like so...

Code: [Select]
//just a lil description file very similar to C++
//ok, to start you need to make the main function.
class CfgSounds
{
//indentation is always good
        //just a list of the sounds without the .ogg ext.
        sounds[] = {blabla,blabla2,etc};
       //now include a definition for each sound.
       class blabla
       {
                  //name of song that you would call thru a trigger, etc.
                  name="blabla";
                  //place in the mission folder you would find the sound,volume,and pitch
                  sound[] = {\sound\blabla.ogg};
                 //if you want some kind of titletext message to appear with the sound, include this
                 titles[] = {1,"Text Here"};
        };
//now you would have to do the above for each sound file
};
//i hope this helps

Cheers,
    Sniper_Kyle ;D

Offline Hauk

  • Members
  • *
  • I sail under the Jolly Roger!! Pirates are kings!!
Re:.ogg files
« Reply #3 on: 18 Apr 2004, 22:58:40 »
I managed to get the sound and radio classes working after spending two weeks browsing through tutorials and the forums, but thanks for the interest ;D

Thnx,

Hauk