Game Development Community

How to compile sound with torque

by Kevin · in Torque Game Engine · 04/21/2005 (3:22 am) · 3 replies

Hi, I'm not sure how hard this would be but the lisence for my sound fx need me to compile the sound with the game.

I just don't know how to start doing this. Can I actually do it?

thanks alot, guys

Kevin

#1
04/21/2005 (11:02 am)
Of course. There are utilities out there to convert files to code representing the file as an array of bytes which you can then compile into your application.
#2
04/21/2005 (12:42 pm)
How do I do that?

do I compile it to the resource file in c++?

or do I use the resourse Manager class?

and How would I make reference to the file after I compile it?

thanks
#3
04/21/2005 (11:53 pm)
It's just memory. :)

That's more of a general programming question, not something Torque specific, so I suggest you check a site like www.codeproject.com for some info.. I bet a bit of searching will turn up some good results.