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:
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?
About the author
Torque Owner Tim Heldna