Game Development Community

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

#1
11/28/2012 (5:31 am)
Raul,

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
#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
11/28/2012 (9:57 am)
media.use.com/images/s_1/39c1f80418f602788d52.jpg


Fortunately, O'Reilly autoparts has them in stock.
http://www.oreillyauto.com/site/c/detail/EB00/121G.oap
#4
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