No sounds and no error
by Raul Martinez · in Torque Game Engine · 11/27/2012 (11:33 pm) · 4 replies
Hello
Im trying to play a sound when my character fires his weapon, I followed the tutorial and when I play the game there is no sound but I get no errors evern if I comment the line with the path to the file, what am I doing wrong
Greetings
Raul
Im trying to play a sound when my character fires his weapon, I followed the tutorial and when I play the game there is no sound but I get no errors evern if I comment the line with the path to the file, what am I doing wrong
Greetings
Raul
About the author
#2
11/28/2012 (8:36 am)
And the cotton balls in the ear make it... hard for him to hear the sound... of coarse!
#3

Fortunately, O'Reilly autoparts has them in stock.
http://www.oreillyauto.com/site/c/detail/EB00/121G.oap
11/28/2012 (9:57 am)

Fortunately, O'Reilly autoparts has them in stock.
http://www.oreillyauto.com/site/c/detail/EB00/121G.oap
#4
Thank you for your reply
Here is my code for the audio description
new AudioDescription(AudioNonLooping)
{
Volume = 1.0;
isLooping = false;
is3D=false;
type = $GuiAudioType;
};
for the profile
new AudioProfile(disparo)
{
//filename="./data/audio/disparo.wav";
// filename ="~/data/audio/disparo.wav";
description="AudioNonLooping";
preload = true;
};
and when I push the fire button on my game I run this
alxPlay(disparo);
and I dont get any error but no sound either
Greetings from Mexico
Raúl
11/28/2012 (9:52 pm)
Hey Ron Thank you for your reply
Here is my code for the audio description
new AudioDescription(AudioNonLooping)
{
Volume = 1.0;
isLooping = false;
is3D=false;
type = $GuiAudioType;
};
for the profile
new AudioProfile(disparo)
{
//filename="./data/audio/disparo.wav";
// filename ="~/data/audio/disparo.wav";
description="AudioNonLooping";
preload = true;
};
and when I push the fire button on my game I run this
alxPlay(disparo);
and I dont get any error but no sound either
Greetings from Mexico
Raúl
Associate Ron Kapaun
3tdstudios.com
Please include the portion of code that contains the sound. Otherwise, we are guessing and that's not a good way to solve any problems.
1st guess: Based on what I know at this point, I would say your flux capacitor is out of sync with the neural enhancer and that is causing excessive gamma radiation to build up thereby causing any small rodents in your area to throw cotton balls into your ears :-)
Ron