Sound troubles
by John Doppler Schiff · in Torque Game Engine Advanced · 07/10/2008 (5:46 am) · 6 replies
Hi guys,
For the life of me, I can't get my sounds working in TGEA. Can some kind soul take a look at the following and tell me where I botched things up?
GUI sounds work fine, but environmental audio gives me no error, and no sound. I've tried sfxPlay(AudioDoorUp) and serverPlay3D(AudioDoorUp,%trans) with no luck. I've tried WAV and OGG files, stereo and mono. No difference.
Any help you can provide would be greatly appreciated!
For the life of me, I can't get my sounds working in TGEA. Can some kind soul take a look at the following and tell me where I botched things up?
// In server/scripts/audioProfiles.cs
datablock SFXDescription(AudioClose3d)
{
volume = 1.0;
isLooping= false;
is3D = true;
ReferenceDistance= 10.0;
MaxDistance= 60.0;
type = $SimAudioType;
};
datablock SFXProfile(AudioDoorUp)
{
filename = "~/data/sound/doorOpen";
description = "AudioClose3d";
preload = false;
};GUI sounds work fine, but environmental audio gives me no error, and no sound. I've tried sfxPlay(AudioDoorUp) and serverPlay3D(AudioDoorUp,%trans) with no luck. I've tried WAV and OGG files, stereo and mono. No difference.
Any help you can provide would be greatly appreciated!
#2
Stereo for 2D sounds, Mono for 3D sounds.
07/15/2008 (4:46 am)
Check that your audio sound is mono and not stereo.Stereo for 2D sounds, Mono for 3D sounds.
#3
If IsLooping is set to false in the description, the profile needs to have preload enabled.
So...
IsLooping = true / Preload = false works fine
IsLooping = false/ Preload = true works fine
Hope this helps someone down the line!
-- JohnDopp
PS: (Thanks for responding, Steve!)
07/15/2008 (9:54 am)
Aha! Found the problem.If IsLooping is set to false in the description, the profile needs to have preload enabled.
So...
IsLooping = true / Preload = false works fine
IsLooping = false/ Preload = true works fine
Hope this helps someone down the line!
-- JohnDopp
PS: (Thanks for responding, Steve!)
#4
Good luck against those squirrels
(I glanced at your profile)
07/15/2008 (3:32 pm)
Glad you found the solution, I always preload all sounds as I expect it's faster than streaming.Good luck against those squirrels
(I glanced at your profile)
#5
07/15/2008 (3:46 pm)
FYI. Streaming is not working in TGEA 1.71. I'm working on fixing this for the next release.
#6
07/15/2008 (6:02 pm)
Thanks for that info, Tom.
Torque Owner John Doppler Schiff