Home   Help Search Login Register  

Author Topic: Why won't this d... .ogg file work?  (Read 703 times)

0 Members and 1 Guest are viewing this topic.

Robinhansen

  • Guest
Why won't this d... .ogg file work?
« on: 27 Sep 2003, 20:17:57 »
I've followed the instructions about how to put music in the missions - but it simply wont work...what am I doing wrong ???

};
class CfgMusic
{
tracks[]={valkyries};
class valkyries
{
name = "valkyries";
sound[] = {"\music\valkyries.ogg", db+15, 1.0};
};

Deepsmeg

  • Guest
Re:Why won't this d... .ogg file work?
« Reply #1 on: 27 Sep 2003, 20:33:44 »
Here's one from one of my missions, which works

class CfgMusic // Overall class name
{
   tracks[]={cossack.ogg}; // declaring the music file's name
   class cossack // the actual declaration
   {
      name = "Cossack Patrol";
      sound[] = {\music\cossack.ogg, db+30, 1.0}; // declares which ogg
   };
};

Notice the difference in the tracks line

Robinhansen

  • Guest
Re:Why won't this d... .ogg file work?
« Reply #2 on: 27 Sep 2003, 21:46:12 »
Well it does'nt work in my mission >:(

class CfgMusic
{
  tracks[]={valkyries.ogg};  
  class valkyries
  {
      name = "Ride Of The Valkyrie";
      sound[] = {\music\valkyries.ogg, db+30, 1.0};
  };
};

Do I miss somthing or is all I have to write... ???


Kaliyuga

  • Guest
Re:Why won't this d... .ogg file work?
« Reply #3 on: 27 Sep 2003, 21:49:08 »
class CfgMusic
{
  tracks[]= {war};

  class war {
     name = "war";
     sound[] = {\music\war.ogg, db+0, 1.0};
  };
};


in your trigger/script/etc  

Playmusic war

Robinhansen

  • Guest
Re:Why won't this d... .ogg file work?
« Reply #4 on: 27 Sep 2003, 22:07:44 »
Does'nt work either ??? I'm loosing my mind...

Offline KJAM

  • Contributing Member
  • **
  • Why Me, Whats it For?
    • Nightstalker mod
Re:Why won't this d... .ogg file work?
« Reply #5 on: 27 Sep 2003, 22:23:02 »
have you made sure that it is a DESCRIPTION.EXT  file instead of something like DESCRIPTION.EXT.TXT

and
Quote
class CfgMusic
{
  tracks[]={valkyries.ogg};  
  class valkyries
  {
      name = "Ride Of The Valkyrie";
      sound[] = {\music\valkyries.ogg, db+30, 1.0};
  };
};

is the .ogg file you are trying to use in your mission folder in another folder called "music" (without Quotes) and is the .ogg file actually called valkyries.ogg?

it may be one of the things i stated above thats the reason it isnt workng, but also place a trigger down and click on EFFECTS (to the left of the ok button) then click on the music list and look for Ride Of The Valkyrie

Deepsmeg

  • Guest
Re:Why won't this d... .ogg file work?
« Reply #6 on: 29 Sep 2003, 12:13:58 »
and ofp seems a bit picky at times about sample rates and stuff
it likes 16 bit files, iirc

Robinhansen

  • Guest
Re:Why won't this d... .ogg file work?
« Reply #7 on: 05 Oct 2003, 17:46:14 »
IT WORKS!!!!! ;D ;D Cheers m8...just what I needed... ;D ;D