Game Development Community

Audio Issues on Client

by Howard Dortch · in Torque Game Engine · 01/02/2009 (6:28 am) · 1 replies

I have some problems getting sound on the clients. I use the serverPlay3D() function but some of the sounds dont play on the client. Is there a limit to the number of sounds I can define? Is there a limit to the number of sound types I can define?
All the sound works fine on the server but the client is missing most of the audio.

When I did get one of the sounds to play on the client it was a looping sound and there is no way to stop it.

ClientGroup.getObject(%idx).play3D(%profile,%transform);

There is no stop3D that I can find in the engine so how do I stop the sound?


Thanks for any help...

#1
01/03/2009 (8:39 pm)
Make sure that sounds your using with serverPlay3D() are defined in the server scripts and use 'datablock' and not 'new' to define the profile and description.

Another common issue is trying to play a 2 channel stereo sound as a 3D sound... all 3D sounds must be single channel mono sounds.