Game Development Community

SFXProfile Sound Problem When Using Gui Slider Control

by Philip J. Stroh · in Torque 3D Professional · 11/19/2010 (1:02 pm) · 3 replies

I have a problem where I have a SFXProfile engine sound for an airplane that I define in the airplane datablock. I also have a GUI with flight parameters and GUI slider controls that I can use to tweak the flight parameters. When I am flying, I hear the engine sound, but as soon as I use one of the GUI slider controls, I lose engine sound. Does anybody know how to fix this sound problem? I want to be able to move the GUI slider, but not lose the engine sound of the airplane.

The SFXProfile uses the AudioCloseLoop3D profile. Also, I am using a WAV sound file.

About the author

Companies I worked for: VTSG: F16 simulations. Simigon: Primarily F16 simulations. Veraxx: 2D simulation called the TEN. Valador: DON, plus new Torque projects. I served in U.S. Marine reserves for a little more than 9 years in an infantry unit.


#1
01/08/2011 (12:05 am)
Logged as THREED-1312.
#2
01/24/2011 (8:51 am)
I think the root of the problem I'm having is that I am using a number of console functions to change flight parameter values in the FlyingVehicle class and somehow the client and server versions of this FlyingVehicle object is getting out of sync. Once it gets out of sync, the propeller animation on the plane stops working and the SFX sound stops working as well.

Also to note is that I am mounting this FlyingVehicle object with my player and that is when changing the flight parameters causes these problems.

I added these flight parameters to the packData and unpackData functions as well.
#3
02/06/2011 (11:39 am)
It turns out that the fix for my problem here is in the following two threads:

1. www.garagegames.com/community/forums/viewthread/123439/

and

2. www.garagegames.com/community/forums/viewthread/111049

Thanks again for logging this for me. Look at these threads so that you can see this bug is resolved. Thanks.