Game Development Community

Sound not playing..

by Temasek Polytechnic · in Technical Issues · 07/24/2006 (2:40 am) · 3 replies

Ok.
In my game, i have a background ambience sound being played.
I also have a horse in the game.
There is a horseWhine function that will make the horse, well, whine.
I have this line in my function:
$horse = alxPlay(HorseWhine);

And my "HorseWhine" is declared in client/audioprofiles.cs like this:
new AudioDescription(AudioGui)
{
   volume   = 1.0;
   isLooping= true;
   is3D     = false;
   type     = $GuiAudioType;
};


new AudioProfile(HorseWhine)
{
	filename = "~/data/sound/horse.wav";
	preload = true;
	description = "AudioGui";
};

The horseWhine function is called in the game because the horse whine animation is played.
But the horse whine sound isn't played.

Why is this so?

#1
07/24/2006 (2:48 am)
Oh ok.
I solved the problem.
There was something wrong in my wav file.
#2
07/24/2006 (9:25 pm)
Ok, another question.

Is it posible to have to different audio's in the same channel?

I have 2 audios, both uses the same description.

However, only my first audio plays. But if i create a new desciption and set a different channel (type) to it, then both the audio can be played.
#3
07/26/2006 (12:33 pm)
I had a similar problem...
post your code, perhaps it is the same...