Game Development Community

Sound format support

by baylor wetzel · in Torque Game Builder · 07/09/2007 (3:23 pm) · 8 replies

Anyone know what sound formats TGB supports?

i didn't see anything about sound in the docs (which seems odd; i thought it might be a broken out section like Input and Projects and such are) and the TDN articles i've found only mention WAV (although i did find TGE FMOD code from 2002)

#1
07/09/2007 (3:25 pm)
Baylor, TGB supports both WAV and OGG formats natively.

There are a number of resources that allow you to use additional formats, such as the FMOD resource which allows you to use any format supported by FMOD (ie; MP3, OGG, etc)


As for the documentation, Sound is covered very briefly in one of the tutorials, basically, you just create a sound profile and then call AlxPlaySound() in your scripts -- there's not really much to tell about it.

#2
07/09/2007 (3:30 pm)
David, i don't think my students have the TGB version that comes with source code, so we're probably out of luck with resources. Do you happen to know what formats are natively supported? i've built a cut scene demo but, WAVs being as big as they are, i would prefer to convert the music to some smaller format
#3
07/09/2007 (3:35 pm)
OGG files are smaller than WAV files. You can use a free program such as Audacity to convert.
#4
07/09/2007 (8:42 pm)
@baylor,

I mentioned in my first post, OGG files are also supported by TGB.

OGG is similar to MP3 in filesize (and in some other respects too).

Melissa is correct, Audacity is a great program for converting between formats such as WAV to OGG. I use Audacity all the time when working with sound resources -- awesome little app, especially for the price :)

#5
07/09/2007 (9:07 pm)
Good lord, how did i not notice that the very first line says WAV and OGG. Assuming that's exhaustive, i assume that means no MIDI or MP3

i downloaded Audacity, and while i can't quite figure out what to do, i still managed to convert a WAV and an MP3 into OGG and get it playing as a loop in the background of my TGB cutscene. Good times!

Thanks everyone
#6
07/10/2007 (6:17 am)
MP3 licensing is a sticky issue, so no support there.
#7
08/08/2007 (7:44 am)
I am also having a hard time with Audacity, I can't get files to convert. I have tried getting some mp3s to convert to ogg's. I can get them to change to the OGG file format, but the sound quality just falls apart. Is there anyway I can convert it and keep the quality?

I have looked through Audacity and couldn't find anything about quality settings in the converter.
#8
08/08/2007 (7:49 am)
I'm sure there's quality settings somewhere in audacity.
you might also check out goldwave - it's default ogg export is pretty good.