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:
And my "HorseWhine" is declared in client/audioprofiles.cs like this:
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?
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?
About the author
#2
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.
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.
Torque Owner Temasek Polytechnic
I solved the problem.
There was something wrong in my wav file.