Setting up Sound - Resolved
by NCGames · in Torque 3D Professional · 11/09/2010 (5:09 pm) · 2 replies
I've been going through "3d game programming all in one second edition", while it's targetted at TGE, Torque as far as the workings go haven't changed much, and I've worked a little with TGB and T3d.
I've done some serious searching around, looking for something which explains setting up audio. I tried essentially a copy/paste but that gave me an error which having attempted to fix it, don't remember. I had all the code in one big file like: http://pastebin.com/0bJ44KVL Executing the file while in the level. That didn't work, so I added it to onStart, still wasn't working.
I'm working on adding the profile to game/art/datablocks/artProfiles.cs but a comprehensive guide would be really helpful, what the descriptions are and where I can find their definitions. Why OOBWarningSnd has its description in quotes but ThrowSnd does not. To what files you need to add what in order to make a simple 3d sound.
And yes, I've visited: http://www.torquepowered.com/community/forums/viewthread/100767 It's not comprehensive enough for me to follow it.
Torque version: 1.1b3 binary
Edit: Just found the error that had been plaguing me, "Illegal CodeBlock path detected"
I may as well clarify what I'm looking for, what I'd like is a description of the steps necessary in order to add a simple 3d sound.
I've done some serious searching around, looking for something which explains setting up audio. I tried essentially a copy/paste but that gave me an error which having attempted to fix it, don't remember. I had all the code in one big file like: http://pastebin.com/0bJ44KVL Executing the file while in the level. That didn't work, so I added it to onStart, still wasn't working.
I'm working on adding the profile to game/art/datablocks/artProfiles.cs but a comprehensive guide would be really helpful, what the descriptions are and where I can find their definitions. Why OOBWarningSnd has its description in quotes but ThrowSnd does not. To what files you need to add what in order to make a simple 3d sound.
And yes, I've visited: http://www.torquepowered.com/community/forums/viewthread/100767 It's not comprehensive enough for me to follow it.
Torque version: 1.1b3 binary
Edit: Just found the error that had been plaguing me, "Illegal CodeBlock path detected"
I may as well clarify what I'm looking for, what I'd like is a description of the steps necessary in order to add a simple 3d sound.
About the author
Associate Steve Acaster
[YorkshireRifles.com]
As for emitters, best to place an emitter object in-game via the editor.
Read the docs, audio is covered.