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
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
Torque Owner Stefan Lundmark
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.