Game Development Community

Playing audio file on a single channel

by Aditya Varma · in Torque Game Engine · 04/20/2004 (3:57 pm) · 1 replies

Hi,
I am new to torque and am currently looking to playing audio sound effects in the game. Particularly, I am looking at how to play a sound in particular channels (for instance the front speakers only and not the back speakers)
I was wondering if anyone can help me figure out how to specify that a sound should be played in a particular channel alone? Also is there a command that can control volume in a particular channel?
Thanking you,
Adi

About the author

Recent Threads


#1
04/20/2004 (4:18 pm)
I don't think there is a command to specify the volume in one "channel" (ie, speaker) out of the box in Torque.. I think you'll have to dig into the code for that, but I'm not sure.

To play a 2D sound, check out crossbow.cs in Realm Wars under the server script folder. It has entries for that there, and you'll need a audio profile to play 2D sound, with stereo enabled. client/scripts/audioprofiles.cs for menu/gui stuff, server/audioprofiles.cs for ingame stuff - I think.

Someone might wanna correct me on these, I'm going to bed.