Home   Help Search Login Register  

Author Topic: HELP! SOUND NOT WORKING! (Solved)  (Read 1046 times)

0 Members and 1 Guest are viewing this topic.

Offline Blacknite

  • Members
  • *
  • Chiefs runs the navy!
HELP! SOUND NOT WORKING! (Solved)
« on: 01 Sep 2008, 04:25:01 »
Well, I am lost on what to do now...  For some reason, my sound is not playing at all in game, no error messages or anything, just total silence...  Here is what I did:
I converted the MP3 sound into wav format using the dBpower AMP Music Converter with 16 bit, 44100mhz, and 1 mono.  Then I converted it to Ogg using the old OFP Sound Lab.  Created the description file with the following info:

onLoadIntro="Hi"
onLoadMission="hello"

class CfgSounds
{
   sounds[] = {melee, city, helo, hotel, test};

   class melee
      {
        name = "melee";
         sound[] = {"melee.ogg", db+1, 1.0};
         titles[] = {0,  };
      };
   class city
      {
        name = "city";
         sound[] = {"city.ogg", db+1, 1.0};
         titles[] = {0,  };
      };
   class helo
      {
        name = "helo";
         sound[] = {"helo.ogg", db+1, 1.0};
         titles[] = {0,  };
      };
   class hotel
      {
        name = "hotel";
         sound[] = {"hotel.ogg", db+1, 1.0};
         titles[] = {0,  };
      };
   class test
      {
        name = "test";
         sound[] = {"test.ogg", db+1, 1.0};
         titles[] = {0,  };
      };
};

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

But not a single one of those sounds work at all! 
Enclosed is one of the sound files.
« Last Edit: 01 Sep 2008, 06:56:30 by Blacknite »

Offline hoz

  • OFPEC Site
  • Administrator
  • *****
Re: HELP! SOUND NOT WORKING!
« Reply #1 on: 01 Sep 2008, 06:44:27 »
Maybe attach a small sample mission. Maybe its the way your calling it?
Xbox Rocks

Offline Blacknite

  • Members
  • *
  • Chiefs runs the navy!
Re: HELP! SOUND NOT WORKING!
« Reply #2 on: 01 Sep 2008, 06:56:10 »
Nevermind...

Problem was, I was missing the "\" in the location of each of the sound file, so it should of read:
sound[] = {"\melee.ogg", db+1, 1.0};

Thanks anyways!