Jump to content
Sign in to follow this  
alekelpragh

Adding Sound to config.cpp -> Result: "Sound not found"

Recommended Posts

Hi Guys,

iam freaking out right now. Iam trying to include a soundfile to my own acre radio for hours, but i allways get the error 'sound "Rauschen" not found!'.

And after hours of google and searching in this forum, iam finally posting myself. I can't believe, that iam the first one with this error and that iam just using the wrong keywords for my search, so sorry for maybe dobble posting this question.

The only post i found was this thread, but i don't really understand what made him succed.

I've tried to get behind my issue, for that i createt a new mod, that includes just the sound configuration, that i want to get in game with "playsound" command.

my mod.pbo contains just 2 files (config.cpp and rauschen.ogg) with no directories.

my config.cpp:

class CfgPatches 
{ 
   class MyTag_MySound 
       { 
       units[] = {}; 
       requiredVersion = 1.00; 
       requiredAddons[] = {}; 
   }; 

};

class CfgSounds
{
sounds[]= {};

class Rauschen_s
{
	name = "Rauschen";
	sound[] = {"rauschen.ogg", db+0, 1.0};
};
};

by the way: iam not sure if i have to use

playsound "Rauschen";

or

playsound "Rauschen_s";

if i copy that code right into the mission (include the CfgSound to my mission description file and put the ogg into the mission folder), it works as it should do.

The error itself tells me, that the engine is not able to locate the soundclass definition.

So what the hell iam doing wrong?

Thank you to all who will help me getting behind it.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×