Game Development Community

Audio help

by Spencer Strombotne · in General Discussion · 08/14/2008 (7:34 am) · 4 replies

I've been browsing the torque game engine "documentation" for about an hour now and I can't find any "how to" for sound. I want a sound to play when I access a GUI. Is there a simple way of doing this?

#1
08/14/2008 (7:51 am)
You can use this function, lets assume that you are playing a music for the main menu, put this in the loadMainMenu() function in client/init.cs

alxPlay(MainMenuMusic);

where MainMenuMusic is an AudioProfile, that you have to create.
#2
08/14/2008 (8:06 am)
Would the audioprofile be on client side or server side for a gui?
#3
08/14/2008 (8:31 am)
Would the audioprofile be on client side or server side for a gui?
#4
08/14/2008 (8:46 am)
The audio profile should be on the client side, because its used in GUIs, and mainly all GUIs are client side.