Game Development Community

Vehicle sounds

by CodingChris · in Torque Game Engine Advanced · 01/10/2008 (7:59 am) · 4 replies

Hi,
I've got some sample vehicle sounds from a CD and want to use them. I created AudioProfiles:
datablock AudioProfile(ScoutEngineSound)
{
   filename    = "~/data/sound/car/engineidle.wav";
   description = AudioCloseLooping3d;
   preload = true;
};
datablock AudioProfile(HardImpactSound)
{
   filename    = "~/data/sound/car/hardcrash.wav";
   description = AudioClose3d;
   preload = true;
};
datablock AudioProfile(SoftImpactSound)
{
   filename    = "~/data/sound/car/softcrash.wav";
   description = AudioClose3d;
   preload = true;
};
datablock AudioProfile(WheelImpactSound)
{
   filename    = "~/data/sound/car/wheelimpact.wav";
   description = AudioClose3d;
   preload = true;
};
datablock AudioProfile(ScoutThrustSound)
{
   filename    = "~/data/sound/car/engineaccel.wav";
   description = AudioClose3d;
   preload = true;
};
datablock AudioProfile(ScoutSquealSound)
{
   filename    = "~/data/sound/car/wheelsqueal.wav";
   description = AudioClose3d;
   preload = true;
};
and I added them to my car datablock:
// Sounds
   jetSound = ScoutThrustSound;
   engineSound = ScoutEngineSound;
   squealSound = ScoutSquealSound;
   softImpactSound = SoftImpactSound;
   hardImpactSound = HardImpactSound;
   wheelImpactSound = WheelImpactSound;
But the engine sound is only working if I toggle camera with alt + c and if I move the camera I hear nothing like always... What is wrong here?

#1
01/10/2008 (8:43 am)
You're using mono sounds, right?
#2
01/10/2008 (8:44 am)
I think so, but I have to say, that I don't know that... My job is to get them into the game not to know if they are mono:)
#3
01/10/2008 (8:48 am)
Well they need to be mono as opposed to stereo.
#4
01/10/2008 (8:50 am)
And why are they not working?