Game Development Community

No Sound Client Side?

by Chris Byars · in Torque Game Engine · 09/26/2005 (2:43 pm) · 11 replies

Is there any reason in-game sound (weapons, footsteps, anything) would not work on the client side yet work fine on the server side?

It seems to have happened to my project.. randomly.. o_O

(Not the PCs, tried both as client/server and both times the client player had no sound but the server player did)

#1
09/26/2005 (3:34 pm)
Sounds odd. The server doesn't even use sound, so it's probably something wrong with your scripts somewhere.
#2
09/26/2005 (7:25 pm)
I've noticed that my vehicle sounds, and the environment sounds due to precipitation do work client-side, just not anything else...

I am completely baffled how this broke and where the problem would lie.
#3
09/28/2005 (6:09 pm)
Are all datablocks sent correctly when you're loading the mission? Look for console errors in your logfile.
#4
09/28/2005 (6:40 pm)
No errors anywhere in either server or client's console.log. o_O
#5
10/01/2005 (5:34 pm)
I had a problem trying to get sounds playing on my remote client.
The sounds would play fine on a local client.
But not work if I joined a server as a remote client.(dedicated server running on same machine).

I found it will work only if I change the location of my 'audioDescriptions'
from server side to client side.
After I did that all the sounds work.

It seems the server sends the 'audioFormats' down to clients but not the 'audio Descriptions'.

Not sure why yet?

Hope this helps.
#6
10/01/2005 (5:40 pm)
Interesting, I will take a look into that.
#7
10/02/2005 (1:45 pm)
I moved the audio descriptions script to client side and had it set to execute there instead of server side, but that just made no sound work at all once in-game for the server player, and the client player couldn't even join.

I'm at a loss as to why sound client side just died.
#8
10/02/2005 (9:54 pm)
Maybe you have a bad OpenAL32.dll?
#9
10/03/2005 (3:14 pm)
Looks like I have it on server and client, what I did was-
copy the contents of server/scripts/audioprofiles.cs,
and past it into 'client/scripts/audioprofiles.cs'
Then i replaced 'server/scripts/audioprofiles.cs'
with the new 'client/scripts/audioprofiles.cs'
Not sure why but it seems to work. Im v1.3
#10
10/03/2005 (3:38 pm)
I'm v1.3 as well. Will try your solution tonight, though odd it is. Then again, my problem is also odd. :P
#11
10/03/2005 (6:37 pm)
Excellent, it works now. Thanks Brian.